Skip to content

taylorsmcclure/dns-drift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dns-drift

Description

A small Go-based program compares YAML DNS configurations to what actual DNS servers are resolving.

Usage

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

About

Go-based drift detection for DNS records

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published