Skip to content

Instantly share code, notes, and snippets.

@jpmens
Created April 16, 2018 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmens/4915f7c8775069185ad7e3d50bee2732 to your computer and use it in GitHub Desktop.
Save jpmens/4915f7c8775069185ad7e3d50bee2732 to your computer and use it in GitHub Desktop.

ok, as expected, -a required in this hotel (!)

$ ./check-soa -a -tcp -4 iis.se
i.ns.se.
	194.146.106.22: OK: 1523885101
ns.nic.se.
	91.226.36.45: OK: 1523885101
ns3.nic.se.
	91.226.37.45: OK: 1523885101

unexpected

$ ./check-soa -a -tcp -4 afnic.fr
ns1.nic.fr.
	192.134.4.1: ERROR: 0 answer
ns2.nic.fr.
	192.93.0.4: ERROR: 0 answer
ns3.nic.fr.
	192.134.0.49: ERROR: 0 answer
  
$ ./check-soa -d -a -tcp -4 afnic.fr
check-soa: Last commit on HEAD cc5dd652f54bb379086eef9252107ec1e1e3d8ad on 2018-04-16 16:49:57 +0200 Build on 2018-04-16T19:10:47 UTCDEBUG: end of DNS request "afnic.fr." / 2
DEBUG: end of DNS request "ns3.nic.fr." / 1
DEBUG Querying SOA from 192.134.0.49:53
DEBUG: end of DNS request "ns2.nic.fr." / 1
DEBUG Querying SOA from 192.93.0.4:53
DEBUG: end of DNS request "ns1.nic.fr." / 1
DEBUG Getting result for ns #1/3
DEBUG Querying SOA from 192.134.4.1:53
DEBUG Getting result for ns #2/3
DEBUG Getting result for ns #3/3
ns1.nic.fr.
	192.134.4.1: ERROR: 0 answer
ns2.nic.fr.
	192.93.0.4: ERROR: 0 answer
ns3.nic.fr.
	192.134.0.49: ERROR: 0 answer

with recursion it works

$ ./check-soa -e -a -tcp -4 afnic.fr
ns1.nic.fr.
	192.134.4.1: OK: 2018041601
ns2.nic.fr.
	192.93.0.4: OK: 2018041601
ns3.nic.fr.
	192.134.0.49: OK: 2018041601

Probably something with the broken DNS between me and the world ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment