Dynamic DNS

Discussion to talk about software related topics only.
Post Reply
v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Dynamic DNS

Post 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...
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

Re: Dynamic DNS

Post 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

v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Re: Dynamic DNS

Post 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...
Post Reply