middle.network · Outside-in Use Case Brief DevOps & Platform Engineering · https://middle.network/use-cases/bind-zone-linting-before-merge/
DevOps & Platform Engineering Zone Hygiene · RFC 1035 Bug

Catch missing trailing dots, bad TTLs and broken TXT quotes before merge

Lint and format raw BIND zone files cleanly inside pull requests so subtle RFC 1035 syntax bugs never reach production nameservers.

The problem

One forgotten trailing dot on an MX or CNAME target turns mail.example.com into mail.example.com.example.com and silently blackholes mail.

Why internal tools miss it

Code review diffs miss subtle relative-name bugs, unbalanced TXT quotes over 255 characters and inconsistent SOA timers.

How middle.network solves it

Zone File Formatter parses, lints and tidies BIND zone files instantly in the browser or via REST API, flagging RFC 1035 hazards with plain-English explanations.

Hypothetical scenario Example target: clearwaterhosting.net

A single missing trailing dot threatens to break MX delivery for 12 domains

Clearwater Hosting manages multi-tenant BIND zones in Git. A junior engineer adds a new MX target without a trailing period during a bulk update.

Without outside-in verification

The zone reloads without throwing a syntax error, yet every MX answer resolves to a non-existent doubled hostname.

With middle.network
  1. Step 1
    Run Zone File Formatter in PR Check

    Zone Formatter immediately flags the relative MX target missing its trailing dot and identifies an unsplit 310-character DKIM TXT string.

  2. Step 2
    Apply Tidy Output

    The engineer accepts the formatted output with properly split 255-byte TXT chunks and canonical FQDNs.

  3. Step 3
    Pair with Zone Pre-Check

    After staging the zone on secondary nameservers, Zone Pre-Check confirms live parity before cutover.

Outside-in tool playbook

Run these exact live checks in order - free on the website with zero sign-up.

DNS records
1. Lint & format BIND zone

Zone file formatter and linter

Are trailing dots, SOA timers and >255-char TXT records RFC-valid?

Try live
DNS records
2. Diff staged nameservers

Zone pre-check for new nameservers

Does the loaded zone answer identically to live DNS?

Try live
DNS health and propagation
3. Verify live zone post-reload

DNS health report

Did every nameserver increment its SOA serial cleanly?

Try live

One run, two audiences: Plain English and Technical proof

Every check outputs executive-ready wording alongside raw technical verification so teams never waste time translating findings.

Plain English (PR Reviewer)Stakeholder-ready

The new mail server address is missing a final dot, which causes DNS to append the domain name twice and break incoming email. The DKIM key also needs to be split into two quoted chunks.

Next step: Add the trailing dot to the MX record and apply the formatted TXT split.
Technical Detail (Zone Linter)Engineer view
line 18 WARN: MX target "mx1.mailhost.net" lacks trailing dot (expands to mx1.mailhost.net.clearwaterhosting.net.)
line 24 WARN: TXT string length 310 > 255 octets; split into two quoted strings
status: formatted zone ready for named-checkzone & deployment
Scale from ad-hoc check to automation

Lint zones automatically via API at 1 cost unit per call

Zone File Formatter is a lightweight passive API endpoint available immediately with free self-serve API keys, costing only 1 unit per call.

More DevOps & Platform use cases

Common questions

Lint and format raw BIND zone files cleanly inside pull requests so subtle RFC 1035 syntax bugs never reach production nameservers.

Lint a zone file live
Why do TXT records longer than 255 characters need splitting?
DNS TXT strings have a 255-octet limit per segment. Long DKIM 2048-bit keys must be split into multiple quoted strings that resolvers concatenate automatically.
Does Zone File Formatter send our zone to third-party DNS providers?
No. It parses and lints the zone directly without querying or publishing anything to external registrars.
Can we call Zone File Formatter from CI pipelines?
Yes. It is open to free self-serve API keys and fits neatly into pull-request lint steps.