Page 1 of 1

Help with setting up Namecheap DDNS.

Posted: 26 Sep 2012 22:02
by MrPilipo
I'm trying to setup inadyn to work with Namecheap ddns service, no luck so far.
Anyone knows how to do it?

Re: Help with setting up Namecheap DDNS.

Posted: 27 Sep 2012 08:39
by raulfg3

Re: Help with setting up Namecheap DDNS.

Posted: 27 Sep 2012 09:36
by MrPilipo
Gave up on trying to setup inadyn.
Solved my problem with simple cron job running every 20min:

Code: Select all

#!/bin/sh
# Update Namecheap DDNS record
host_name="subdomain"
domain="your_domain"
domain_password="your_ddns_password"
output="/full_path/update-ddns.log"
fetch -v -o - "https://dynamicdns.park-your-domain.com/update?host=$host_name&domain=$domain&password=$domain_password" 2>&1 |tee $output
Works like a charm =)

Re: Help with setting up Namecheap DDNS.

Posted: 11 Nov 2012 21:09
by kobid84
hey
how you create that job ?
what should i write in the command ?

Re: Help with setting up Namecheap DDNS.

Posted: 11 Nov 2012 22:55
by raulfg3
copy & paste in a new file like mynamecheap and copy this file to somewhere in your install, /usr/local/sbin/ could be a good place, revise that have execute privileges and test that you can launch from System|Advanced|Cron (webgui).

Re: Help with setting up Namecheap DDNS.

Posted: 12 Nov 2012 07:38
by kobid84
thanks
what should i need to write in the cron command ?

sorry i'm new in this business :)

Re: Help with setting up Namecheap DDNS.

Posted: 12 Nov 2012 08:53
by raulfg3
in the cron webgui you need to write the name of the previous script, and define what you want that cron can be executed. ( write full path to your script).

Re: Help with setting up Namecheap DDNS.

Posted: 01 Jul 2015 11:54
by loozhengyuan
Sorry for bumping this old thread, but my script stopped working after many years. When i manually insert the domain and domain_password into the url, it can work. When I manually run cron, it tells me that it is successfully ran, but the ip address is not being updated. Anyone have any ideas?

Current version:
9.2.0.1 - Shigawire (revision 972)

Code used:

Code: Select all

#!/bin/sh
# Update Namecheap DDNS record
host_name1="@"
host_name2="www"
domain="<<MYURL.COM>>"
domain_password="<<PASSWORD FROM NAMECHEAP>>"
output="/var/log/system.log"
fetch -v -o - "https://dynamicdns.park-your-domain.com/update?host=$host_name1&domain=$domain&password=$domain_password"
fetch -v -o - "https://dynamicdns.park-your-domain.com/update?host=$host_name2&domain=$domain&password=$domain_password"

Re: Help with setting up Namecheap DDNS.

Posted: 01 Jul 2015 14:46
by b0ssman
yes this question is asked so many times that it is an entry in the faq

http://wiki.nas4free.org/doku.php?id=faq:0043