Lion Cipher Lab

Lint a DNS zone file for hygiene and correctness problems

Why it matters

A DNS zone file is the source of truth for a domain: it maps names to addresses, mail servers, and policy records. A mistake in it does not throw an error — it just quietly breaks something or opens a hole. A CNAME at the zone apex or sitting alongside other records is illegal and makes resolvers behave unpredictably. A CNAME pointing at a name that no longer exists is a dangling record, the raw material for subdomain takeover. An MX or NS record pointing at a CNAME violates the DNS spec and breaks mail or delegation. An SPF record that ends in '+all' authorizes the entire internet to send…

What you'll learn

Steps in this lab

  1. A zone file fails quietly
  2. The zone to audit
  3. Write the linter
  4. Run it: six findings, sorted by severity
  5. Extend it, and know its blind spot

Open the full interactive lab →