I followed this to setup my namecheap ddclient:
So i’ve installed ddclient:
apt-get install ddclient
Then configured it:
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
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:
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:
and added this line:
Restarted ddclient and run:
ddclient -daemon 0 -debug -verbose -noquiet
and make sure all is looking good.