I briefly explored setting up Terraform to manage my DNS records, but actually I think that's too much complexity – I change my DNS so seldom, I'd have to recreate my Terraform environment each time.
The part of infra-as-code that I want for my DNS records is the ability to add comments and notes, to remember why my DNS is the way it is. The tool itself is sort of irrelevant. (And spot obvious bugs – looking up the Fastmail reference docs made me realise I didn't have any DMARC records for alexwlchan.net.)
So here's my solution: a Python script that gets all my DNS records, and saves them as a TOML file. Then it compares those to a known-good copy, to see if anything has changed. The comments go in that known-good copy and I'll be alerted if they drift.
For #837
I briefly explored setting up Terraform to manage my DNS records, but actually I think that's too much complexity – I change my DNS so seldom, I'd have to recreate my Terraform environment each time.
The part of infra-as-code that I want for my DNS records is the ability to add comments and notes, to remember why my DNS is the way it is. The tool itself is sort of irrelevant. (And spot obvious bugs – looking up the Fastmail reference docs made me realise I didn't have any DMARC records for
alexwlchan.net
.)So here's my solution: a Python script that gets all my DNS records, and saves them as a TOML file. Then it compares those to a known-good copy, to see if anything has changed. The comments go in that known-good copy and I'll be alerted if they drift.