Some code snippets to check lameness of a zone.
sh zone-lame-check.sh <domain> <nameserver>
Run loop-zones.sh
to extra NS records from a zonelet files and run the check on each on.
Zone files to parse for NS seeding must be placed into the zones/
folder first.
CASE_0: all good not lame
CASE_1: server not reachable, nameserver cannot be resolved, port 53 closed etc
CASE_3: nameserver reachable but not responsive or not serving zone
CASE_4: nameserver not authoritative
RECURSIVE tag: a nameserver is tagged as recursive if the flag "ra" is found. Authoritative nameservers should normally not be open recursive server as they can be vulnerable to DDoS.
A zone is considered lame is one of the above conditions are met. The dnscheck script is a simple bash script which uses dig
and parses the output.