A small Go-based program compares YAML DNS configurations to what actual DNS servers are resolving.
Usage: dns-drift [--verbose, --version] <config> <domain> <nameserver>
e.g.
./dns-drift config/branch.yaml dns-exercise.dev 8.8.8.8
There are some example YAML files for configuration in the config/ directory.
Once program runs it will then output a YAML file with the detected drift in the following format:
# Zone changes for dns-exercise.dev - Generated by dns-drift
cname:
add:
value: banguse.net.
delete:
value: bongustest.net.
spf:
add:
value: v=spf1 ip4:192.168.0.1/16 -all
delete:
value: v=spf1 ip4:192.168.0.1/16-all
txt:
add:
value: Bah bah black sheep
delete:
value: Twinkle twinkle little star
www:
add:
value: 2.2.3.6
delete:
value: 2.2.3.7