Editdns.pl – EditDNS Record Management Script

Over the last couple of years, I’ve used a few more or less popular free DNS hosting services, and my best experience so far has been with EditDNS.net — mostly because their service really puts you in control of your domains and records. I started using them when I needed to set up SPF records (which are technically TXT records in a specific format) for a domain, and I discovered TXT records were not supported by most DNS hosting services — EditDNS being one of the few exceptions.

However, a couple days ago I encountered a problem. I wanted to set up a round robin DNS configuration for a domain with two IP addresses, one of them being a dynamic IP (that changed once every month or two). One of the key objectives was that the DNS records should be updated automatically when the IP changed. An obvious solution would be to use DynDNS records (supported by EditDNS), but I quickly learned that it’s not possible to set up two records with the same name (which is the basis for a round robin configuration) and make only one of them DynDNS ready. The system considered both records dynamic and wouldn’t just update one, keeping the other one intact. So, bummer. My next idea was to use the EditDNS API to simply delete the old record and create a new one with the new IP address, but this turned out to be impossible too, as the delete function is not yet implemented in the API. Bummer again.

But there are no unsolvable problems, just unwritten Perl scripts. I ended up putting together a simple script that uses LWP::UserAgent to log in to the EditDNS website and add new records or delete existing ones. The script is flexible enough for general use, so I’m making it available — if any fellow EditDNS users are reading this, maybe you’ll find it useful too.

2 Responses to “Editdns.pl – EditDNS Record Management Script”

  1. Ganesh Rao says:

    Very useful indeed. Thanks a lot.

    Their API allows to add/remove the domain name as a whole, not individual records. Very bad :(

  2. Michal Wojciechowski says:

    I know they’ve been working on a new API with more functions, but it appears development has stalled. Which is disappointing, as it would be nice to have a full-blown API instead of relying on HTML scraping techniques (such as my script).

Leave a Reply