Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 896 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 896 Bytes

lamecheck

Some code snippets to check lameness of a zone.

Usage:

sh zone-lame-check.sh <domain> <nameserver>

Multiple Zones:

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.

Output Details:

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.