Dear #SysAdmin fedi – 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.
Edit: sorted, named-checkzone probably does the trick
This entry was edited (1 day ago)