Next, navigate to "All host records" add a DNS A record for your domain (use the @ symbol for this), or subdomain.
Log into namecheap and select the relevant domain, then choose "Dynamic DNS" under Miscellaneous settings.
Use the radio buttons to enable dynamic DNS, and then make a note of the password.
It should go without saying, but be really careful what you do with this password - anyone with access to it could change any DNS record for your domain that they wanted to.
Unfortunately, namecheap doesn't let you restrict the dynamic DNS to just one subdomain.
You can tell ddclient to use this method by using this line: to ignore IP addresses before the string "foo" if necessary..
Remember how I said anyone with your dynamic dns password can change your DNS records?Some popular router manufacturers have their own settings for ease of use, for example if you have a Linksys router you can use this line: Note that since a lot of routers won't let more than one user log in as admin at a time, you could potentially prevent ddclient from updating your dynamic IP address if you are logged in yourself at the same time.The method involves ddclient querying one of the many "what is my ip" type web services on the internet, and extracting your IP address from the page returned.However, it doesn't work if your server is behind a router because the server only knows its Local Area Network (LAN) IP address.There is a configuration parameter called sets the location of the status page for that particular router containing the WAN IP address.This tutorial will show you how to configure ddclient on Raspbian and Ubuntu.