alexwlchan / alexwlchan.net

Source code and plugins for my website, a static site built with Jekyll
https://alexwlchan.net/
MIT License
42 stars 13 forks source link

Check the DNS on a regular basis #838

Closed alexwlchan closed 5 months ago

alexwlchan commented 5 months ago

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.

alexwlchan commented 5 months ago

🚀 Deployed on https://6651e4c739c2b0494fabbcc5--alexwlchan.netlify.app