Monitors
DNS monitors
A DNS monitor looks up one record on every check: an address, a mail server, a name server or a text record. It tells you when the record is gone, or when none of its values is the one you expect.
On this page
Create a DNS monitor
- On Monitors, press New monitor and choose DNS record.
- Type the Host: a domain name such as
example.comormail.example.com. An IP address is not accepted. - Choose the Record type:
A,AAAA,CNAME,MX,NSorTXT. It isAat first. - If one value must be there, type it in Expected value (optional). Leave it empty to accept any value.
- Choose the Check interval and the Timeout, then press Create monitor.
The expected value
Without an expected value, the check passes when the name has at least one record of that type. With one, it passes when any of the records has that value. You can type one value only, of at most 255 characters.
| Record type | What to type | How it is compared |
|---|---|---|
A | An IPv4 address, such as 93.184.215.14. | As an address. |
AAAA | An IPv6 address, such as 2606:2800:21f:cb07::1. | As an address, so a short and a long way of writing it are the same. |
CNAME | The name the record points to, such as example.com. | Upper and lower case and a final dot do not matter. |
MX | The mail server's name, such as mail.example.com, without the priority. | Only the name counts, not the priority. |
NS | A name server, such as ns1.example.com. | Upper and lower case and a final dot do not matter. |
TXT | The whole text, such as v=spf1 include:example.com ~all. | Exactly, letter for letter, upper and lower case included. Spaces at the start and the end are ignored. |
To see what a record holds now, ask DNS from your computer. dig shows a TXT value in quotes: type it without them. It shows an MX record with its priority first: type only the name. On Windows, nslookup -type=MX example.com shows the same.
dig +short example.com A
dig +short example.com MX
dig +short example.com TXTWhich DNS server answers
The check asks the resolver of the place that makes it: our main server, or a probe in another place. That is the way your visitors' devices ask their own resolver. The places take turns, as for every monitor.
When a monitor counts as down
| Reason in the dashboard | What happened |
|---|---|
| No DNS record of this type | The name does not exist, or has no record of this type. For CNAME, a name without a CNAME record counts here too. |
| DNS record has another value | Records exist, but none has the expected value. |
| No answer in time | The resolver did not answer within the timeout. |
| Address not found (DNS) | The resolver answered with another error, for example because the domain's name servers failed. |
After a failed check, the monitor is checked again 30 seconds later, or sooner when the interval is shorter. Only a second failure in a row makes it Down and sends the alert. When other places are online, they check at the same moment, and the status changes only when most of them agree. One good check brings it back Up.
The dashboard shows whether the check passed, not the values it found: they are not stored. No route is traced when a DNS monitor goes down, because the problem is in the records, not on the way to a server.
What a DNS monitor does not do
- Other record types, such as
SRV,CAA,SOAorPTR, and DNSSEC checks. - More than one expected value, or a check that every record has it.
- Checks on a record's TTL, or on an MX record's priority.
- An IP address as the host, for a reverse lookup.
A DNS monitor watches one record over time. To check a whole domain at once, its name servers, mail records, SPF and DMARC, use the free DNS report.