Dynamic DNS without the fuss
I was fed up with the consistant emails that I had to fill in with a reCAPTCHA that was always extremely difficult to read. So I decided to do something about it.
What we will be using
If you aren’t using CloudFlare for your domains, you should definitely use it. Their service plus the features they provide as a DNS host is amazing. And I forgot to mention, it’s free.
Even though their dynamic DNS host update is not really widely supported on modems and routers, you can get this easily running on one of your Linux servers.
I’ll be installing this on a Debian Wheezy machine, but can be easily installed anywhere else.
How to do this
Before you begin, go obtain your CloudFlare API key and setup an “A” record subdomain.
First download a copy of ddclient
- Extract the file you just downloaded.
- We need to patch the executable with compatability to access the CloudFront API.
- Install like normal onto your system.
- Modify the config file with CloudFront info.
- Put this at the end of the file.
- Check to see if it runs alright.
- Make sure it updated the IP address under the “A” record you created in your CloudFlare account.
Now whenever your server is up and running, it’ll ping CloudFlare with the IP address it obtained from DynDNS every 5 minutes or so.