# DNS health

# DNS health

Three related screens surface DNS posture for monitored domains: the DNS Inspector, the SPF Analyzer, and the Policy Advisor. All three are read-only against live DNS; Drillmark does not publish or edit records.

## DNS Inspector

Opens on a domain and reports:

- Current SPF record (if any), with mechanism parse.
- Published DKIM selectors Drillmark has seen in incoming reports, plus their current DNS state.
- Current DMARC record and its parsed policy (`p=`, `sp=`, `pct=`, `rua=`, `ruf=`).
- MX records.

Each finding carries a severity (`ok`, `warn`, `fail`) based on common misconfigurations (SPF `all` qualifier, DMARC `rua` pointed at a stranger, missing subdomain policy).

## SPF Analyzer

A dedicated page for SPF. Type a domain, the backend:

- Resolves the SPF record.
- Expands every `include:` recursively, counting DNS lookups against RFC 7208's 10-lookup ceiling.
- Proposes a flattened replacement record when the lookup budget is at risk.

The result tree shows each `include:` in-situ; each node is expandable. The flattened replacement is a suggestion, not an automatic publish; copy it into your DNS provider yourself.

## Policy Advisor

Per-domain DMARC policy analysis over the last 30 days of reports. The advisor:

- Shows the current published policy.
- Scores authentication posture against the mail Drillmark has actually seen.
- Recommends the next policy step (stay on `p=none` while legitimate senders fail SPF or DKIM; move to `p=quarantine` once pass rates are high; move to `p=reject` once no legitimate mail is failing).

The recommendation is advisory. Drillmark surfaces the reasoning and the contributing records; the operator makes the call and edits DNS.

## When to use which

- Starting from a report that shows a lot of failures: open the DNS Inspector for the failing domain.
- Hitting the SPF lookup ceiling: SPF Analyzer.
- Asking "are we safe to tighten the DMARC policy?": Policy Advisor.
