Skip to main content
Documentation

About DNS checks

DNS

A DNS check watches the DNS records of your domain. It records your nameservers, your address records and your mail records, and tells you when one of them changes. A record that changes without your knowing is how a hijacked domain, a stray edit at your DNS provider or a half-finished migration shows up first, often before any visitor notices. The check also gives you recommendations about your email and nameserver set-up. Those are advice and never fail the check.

A DNS check asks the DNS about your records. It does not request a page, so it cannot tell you whether your site answers. That is the job of the uptime check.

A domain has at most one DNS check. Alopex adds it when you add the domain, as long as it can work out the registered domain, and runs it soon after. If it cannot, the page for adding one says that Alopex cannot tell where the domain is registered. You see the check on the domain's DNS records tab, in the DNS card on the Overview, and under Certificate, domain & DNS on the Checks tab. The fields are listed in DNS check settings.

What one run does

Each run follows the same steps.

  1. Alopex works out the registered domain, which it calls the zone. For app.example.co.uk the zone is example.co.uk.
  2. It finds the zone's nameservers and asks them directly, not a caching resolver, so a stale cached answer never hides a change. Everything goes to the first nameserver. Another is asked only about what the first could not answer, and no more than three nameserver addresses are used. Each question waits up to 2 seconds.
  3. It compares each answer with what it saw before, using the record set's watch mode (see What each watch mode does).
  4. It checks any pinned record sets against their pins.
  5. It looks for the recommendations described in Recommendations.

A record set that gets no answer is skipped. A nameserver timing out is never treated as the record having vanished.

A DNS check runs about once an hour, 60 to 66 minutes after its last run. It does not follow the domain's Check every setting. To run it now, use Check now on the DNS records tab.

What gets watched

A record set is one type of record at one name, such as the MX records of example.com. Alopex watches these:

NameRecord types
The zone itself (the apex)NS, MX, CAA, A, AAAA, TXT
Each watched host under the zoneCNAME, A, AAAA, TXT

The watched hosts are your domain's own host name when it is a subdomain, the host of each of your uptime and certificate checks that sits under the zone, and any hosts you add under More hosts. Alopex works this out on every run, so a new uptime check on api.example.com is watched from its next run, and removing it stops watching that host. Hosts outside the zone cannot be watched, because the zone's nameservers cannot answer for them.

Not every record set tells you about changes by default.

Record typeDefault watch mode
NS, MX, CAA, CNAMEAny change
A, AAAANew values only
TXTNot watched

Addresses rotate behind load balancers and content delivery networks, so A and AAAA only speak up for an address not seen lately. TXT records change often with verification tokens, so you opt in to watching them. Even when TXT is not watched, Alopex still reads the apex TXT records for its recommendations.

What each watch mode does

Each record set has one watch mode, chosen on the form described in DNS check settings.

  • Any change: any difference between this run's answer and the last one is a change. Alopex records it and sends an alert.
  • New values only: a change is a value Alopex has not seen within the last number of days you set (7 by default). A new value is held back until a later run shows it again, so a one-off answer does not alert. Values that disappear are not reported, and a value that comes back inside the window is not new.
  • Record only: Alopex keeps the change history on the DNS records tab and sends no alert.
  • Pinned: you tell Alopex the exact values the record set must have. If an answer differs, the run fails. See Pinned records.
  • Not watched: Alopex does not look the record set up and keeps nothing for it.

Order never matters. The same values in a different order are not a change.

The baseline

The first answer Alopex ever sees for a record set is its baseline. There is nothing to compare it with, so it is not a change and sends no alert. Changes are measured from there. If you change a record before the check's first run, the changed records are what Alopex records first, so they become the baseline and nothing is reported. A pinned record set is the exception: it is compared with its pin from the first run.

When a change is expected and permanent, for example after a migration, take the new records as the normal with Reset baseline on the DNS records tab. It is shown to people who can edit the domain, once the check is enabled and has recorded something. The dialog is titled Reset the baseline?. When the check has pinned records that differ from what Alopex now sees, it lists each as old values, an arrow and new values, and says that these pins will be updated. Otherwise it asks whether to take the current records as the new baseline, and says Alopex will not alert about them. Select Reset to confirm.

A reset updates those pins to the current values, forgets every stored answer so the next run starts afresh, adds a Baseline reset entry to the change history with your name, and runs the check straight away. It does not edit anything at your DNS provider.

Pinned records

Pinning is for records that must not change, such as your nameservers. When you choose Pinned for a record set, the values the lookup shows for it at that moment become the pin. From then on, every run compares the live answer with the pin. A mismatch fails the run with a message such as www.example.com A is 203.0.113.9, expected 203.0.113.10. When several record sets differ, the message names the first and adds (and 2 more). If a pinned record set has no records at all, the message reads empty for the live side. A record set whose lookup got no answer is skipped, not failed.

A failing pinned check is not capped at degraded. The check shows as down, and the domain's status follows its worst check. An incident for a DNS check is headed DNS check failing, with the reason DNS record does not match. What to do is on DNS record does not match.

A pinned record set does not send a change alert, because the incident is the alert. Alopex still records the change in the history.

What counts as a failure

A DNS check fails in only three ways. A change to a record never fails it, except a pinned one.

What happenedFailure reason
A pinned record set no longer has its pinned valuesDNS record does not match
None of the zone's nameservers answered any watched questionDNS lookup failed
The zone's nameservers resolve only to non-public addressesAddress not allowed

If Alopex cannot find the zone's nameservers at all, the run is inconclusive. It records no failure and opens no incident. After 3 inconclusive runs in a row, the check reads Not answering and the DNS records tab shows the reason.

How quickly you hear about it

A changed record is reported by the first run that sees it, so at most about 66 minutes after the change, plus the time it takes your nameservers to publish it. With New values only a new value is reported by the run after that, once it shows again. Changes seen in one run are sent as a single email, under the DNS record changed alert type, with the old and new values. The email says to check your DNS provider and registrar accounts if you did not make the changes.

A pinned mismatch works like other failures. One failing run does not open an incident. An incident opens when the check has failed as many runs in a row as the domain's Consecutive failures before an incident setting, which is 2 by default. You find it under Settings, in General. See Domain settings. A DNS check does not retry sooner while a failure is unconfirmed, so at the default of 2 the incident opens about an hour after the first failing run. A passing run resets the count and closes any open incident.

Recommendations

Every run also reads your email and nameserver records and looks for things worth tightening. They appear under Recommendations on the DNS records tab, each with a label, what is wrong, why it matters and what to do.

  • Problem: something that is likely broken or unsafe.
  • Warning: something that leaves you exposed.
  • Suggestion: a stronger set-up you could adopt.

Recommendations are advice only. They never fail the check, change the domain's status or send an alert. The list shows the worst first. A recommendation lookup that failed is skipped, and the tab says how many checks were skipped because a lookup failed. Each recommendation is explained on My DNS check is failing, which covers the 17 Alopex can raise.

Recommendations are read whatever the watch modes say, and they are not stored as history. The tab shows when they were last checked.

Dismissing a recommendation

If a recommendation does not apply to you, select Dismiss beside it. People who can edit the domain see the button. A dismissed recommendation is hidden for everyone on the domain and moves under a toggle at the foot of the list that reads, for example, 1 dismissed. The list shows who dismissed each one. Select Undo there to bring it back. When a complete run no longer finds the problem, the dismissal ends, so the recommendation shows as new if it returns. A run that skipped some lookups does not end any dismissals.

What to allow

A DNS check sends ordinary DNS queries, over UDP and TCP, from a single location in the UK. Alopex does not publish IP addresses. A DNS query carries no user agent, so there is nothing to allow by user agent. If you run your own nameservers and they refuse or rate-limit queries by country or network, allow queries from the UK. If they are not reachable at public addresses, the run fails with Address not allowed.

Maintenance windows

While a maintenance window covers a DNS check, changes are still recorded, labelled During maintenance, and they send no alert. A change to a new value is recorded straight away and quietly, so it is not announced later. A pinned mismatch inside the window is recorded as maintenance and opens no incident. If an incident was already open when the window began, it stays open. Maintenance windows are set up on the domain. See About maintenance windows and Schedule maintenance.