Can write a program like ez-ipupdate(easydns-partner) and API syntax?(i may find it in ezipupdate src code)

jing_zhang1105

New Member
I use ez-ipupdate, it looks like a bit old, and it get my ip in LAN(i run it in my phone, no vps), so you will see a domain's A record started with 192.168 ....., is there any rules(or document) for manualy write a program visits the dynDNS api? or i just look into ez-ipupdate source code and write like it?
 
additionally the command line to be sure we update the public IP and not the private ip:

https://<zoneeditsuser>:<token>@api.cp.zoneedit.com/dyn/generic.php?hostname=example.com&myip=1.1.1.1

regards.
 
Hi Jing,

Don't know if this will help you or not, but I recently wrote a update-ddns program, that by default updates one or more zoneedit DDNS records, but is generalized that you can use it with any DDNS provider. You can specify multiple ways to get your IP - several are supplied to you.
For eg: the default config file provides 4 methods that the program will try before giving up:

Code:
get-ip-number:
    methods  (array)    = curl -s icanhazip.com, \
                          curl -s ifconfig.me, \
                          curl -s 'https://api.ipify.org', \
                          curl -s 'http://checkip.dyndns.org' | \
                               sed 's/.*Current IP Address: \([0-9\.]*\).*/\1/g'

If you're interested, you can find it under rjwhite under Github: update-ddns
It does require 2 other modules, also under my Github - one for handling human-readable config files and the other for handling stdout/stderr and providing timeouts for hung processes. There is a man-page and perldoc for the program.
I'm not a zoneedit staff, I'm just a customer.

cheers -rj
 
Last edited:
You might find it useful to check out the ez-ipupdate code as a reference. I’ve done something similar before and it helped a lot. For DynDNS, they should have API docs that show you how to make requests and handle updates. Just make sure to follow their instructions on authentication and updating records.
 
Back
Top