Dear #SysAdmin fedi – I am sure this has to exist, but I cannot find a tool like that.
I need a CLI tool that would canonicalize a DNS zone file. As in: put all the entries in a well-defined order, replace whitespace with a predefined pattern, organize the SOA section in a reproducible manner.
My basic need is being able to tell two zone files are 100% functionally equivalent, even if one uses tabs, the other spaces, and if entries are in completely random order, etc.
Anyone?
#DevOps .