Page 1 of 1

Dynamic DNS

Posted: Sun Aug 15, 2010 8:58 pm
by v8dave
Hi all,

Has anyone done any work with Dynamic DNS on the Netburner?

I am developing a remote monitoring system that is going to be deployed over GPRS. The GSM network I am going to use has a static IP that changes each time you connect and I am looking at the use of DYNDNS.ORG to give it a domain for easy access to the unit.

I have found some source code to do this but I can't find any documents on the actual protocol for this. I could work it out from the source code but I prefer to know the details so I can properly implement it.

Anyone else done this and know where I can locate documents on the protocol?

Cheers,
Dave...

Re: Dynamic DNS

Posted: Mon Aug 23, 2010 4:55 pm
by cmo
I haven't done it on a netburner yet, however I did it from a vbscript a while back. You should be able to port this example over pretty easily. Btw, the example is for OpenDNS.

Code: Select all


function UpdateOpenDNS()
  'Update OpenDNS account by posting the OpenDNS network label after loggin in

  'Required: OpenDNS Account & Label
  oUsername=""
  oPassword=""
  oOpenDNSNetworkLabel=""

  Set xml = CreateObject("Microsoft.XMLHTTP")
  On Error Resume Next
  xml.Open "GET", "https://updates.opendns.com/nic/update?hostname=" & oOpenDNSNetworkLabel, False, oUsername, oPassword
  xml.Send
  If Not Err.Number <> 0 Then
    if instr(xml.responseText,"good")>0 then
      UpdateOpenDNS = "Record Updated"
    else
      UpdateOpenDNS = "Error updating Record"
    end if
  end if
end function


Re: Dynamic DNS

Posted: Wed Aug 25, 2010 2:16 am
by v8dave
Thanks. I also managed to find some code for DYNDNS and it seems to be very similar to what you posted. I'll be trying it out over the next few days.

Cheers,
Dave...