Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  


Welcome to Hurricane Electric's forums!

Author Topic: DDNS  (Read 7514 times)


  • Newbie
  • *
  • Posts: 17
« on: March 09, 2012, 12:58:06 PM »

For those who saw my previous post on the broken dns i had, all is well now that im using he's dns. things are much smoother now and ipv6 awsomeness.

i made a script to update my A records when my isp changes my ip via the ddns url provides, i thought job done, just schedule that every 10 minutes and good to go. Then i remembered the past, with other ddns providors, i would get flagged as abuse for checking/updating so frequently. So i added some checking in the script to see if update is needed.
I thought how nice it would be to also update the tunnel ip from the script  via the tunnel ddns url  but its not updating.

curl -4 --ssl -k ""

and when i login tunnelbroker and check that, nothing is updated..... any suggestions?? thanks!
anyway, the script below works for dns so if anyone wants to try it, there you go... just make sure to change paths, urls and passwords to your own.. obviously make sure its running on the network your checking ddns for... doh

i saved the script in F:\ddns folder, but doesnt matter.

REM ///////////////// HE.NET DDNS UPDATE SCRIPT//////////////////////
set old-ip=
set new-ip=
cd F:\ddns
IF NOT EXIST "old-ip.txt" echo none >old-ip.txt
FOR /f %%A IN ('curl ""') do set new-ip=%%A
FOR /f %%B IN (old-ip.txt) do set old-ip=%%B
IF %new-ip% EQU %old-ip% (goto :eof) ELSE (Goto :update)

curl -4 "http://<DDNS-URL>:<password><DDNS-URL>"
curl -4 "http://<DDNS-URL>:<password><DDNS-URL>"
curl -4 "http://<DDNS-URL>:<password><DDNS-URL>"
REM curl -4 --ssl -k "https://<username>:<password><TUNNELID>"
echo %new-ip% >old-ip.txt

« Last Edit: March 09, 2012, 12:59:49 PM by matth1187 »