I was looking for a nice and somewhat simple way of managing my Reverse DNS settings, and I think i found it. I use DNSControl for managing all my DNS records for all (30+) domains, so i decided to see if I could get it to work for my Reverse (PTR) records too… and it works!
Second, Route53 is Amazon’s DNS service, as part of AWS. You can use it for AWS internal specific stuff, DNS resolution for your public domains, or, in my case, a reverse DNS for my IP block. I also use it for a private DNS for my ZeroTier network too, but that’s a separate matter…
So, to get them both hooked up, first you need DNSControl configured. They have extensive documentation on the matter, so check that out, as i wont be going into too much detail on that part.
After creating a record in Route53 on the AWS portal, my credentials file with details for Route53, creating a “noreg” record, etc, i then created the reverse domain for my IP range:
REV('22.214.171.124/24') is a custom block that will automagically create the correct record, which in my case would be
67.186.185.in-addr.arpa. you could leave that in there, but if you have a few, it may be prone to “fat fingering” the records…
Next, you have all your PTR records. each one has the last part of the IP, along with the name of it. Once you have all your records, it is then a matter of pushing to Route53 using DNSControl:
./dnscontrol-Darwin preview --domains 67.186.185.in-addr.arpa
will show you what changes have been made, assuming you have the config correct.
./dnscontrol-Darwin push --domains 67.186.185.in-addr.arpa
will do the actual pushing.
It is then just a matter of making sure you have the correct records pointing at the correct DNS servers, as per the RIPE (or other provider’s) documentation. And that is that. A quick “dig” on the command line shows your work: