I followed this to setup my namecheap ddclient:
So i’ve installed ddclient:
apt-get install ddclient
Then configured it:
nano /etc/ddclient.conf
ssl=yes
daemon=600
use=cmd, cmd=/root/publicip.sh
protocol=namecheap
server=dynamicdns.park-your-domain.com
login=yourdomain.com
password=1b9aafgfgjh1865e024fabb629dbd1d9c462
@
Save and exit the file
Restart ddclient service using the following command
/etc/init.d/ddclient restart
But I was getting error saying that my ddclient was unable to obtain IP address.
To fix that I have created a script to fetch my public IP address:
nano publicip.sh
curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
saved it and made it executable
chmod +x ./publicip.sh
Next step is to modify the ddclient config:
nano /etc/ddclient.conf
and added this line:
use=cmd, cmd=/root/publicip.sh
Restarted ddclient and run:
ddclient -daemon 0 -debug -verbose -noquiet
and make sure all is looking good.