A DNS monitor checks that your domain name still points where it should. DNS is the internet’s address book: a DNS record turns a name such as example.com into an address or other value. The monitor looks up a record and checks that it resolves (returns an answer). If you give it an expected value, it also checks the answer.
When DNS fails, everything behind the name fails with it. A DNS monitor points straight at the cause: an expired domain, a wrong record, or a move to a new provider that went wrong.
Add a DNS monitor
Section titled “Add a DNS monitor”-
Open Monitors in the sidebar and select New monitor.
-
Choose the DNS tab.
-
In Hostname, enter the name to resolve, for example
example.comorapi.example.com. Enter the name only, without a scheme or path. -
In Record type, choose the record to look up. The default is A, the record that points a name at an IPv4 address. See Record types.
-
In Expected value, enter the answer you expect, for example
203.0.113.10for an A record. Leave it empty to only check that the record resolves. -
In Name, enter what your team calls the record, for example “Main domain A record”.
-
Open Advanced settings if you want to change Check every and Locations. See Create a monitor.
-
Under Test first, select Run test to confirm the record resolves as you expect.
-
Select Create monitor.
-
Open the monitor’s Notifications tab and choose who gets alerted. A new monitor alerts nobody until you do.
-
Select Save changes.
Set up alerts for the monitor covers each alert setting.
The monitor shows Pending until its first check reports, then Up if the record resolves as expected.
DNS monitor settings
Section titled “DNS monitor settings”| Field | What it does | Default and options |
|---|---|---|
| Hostname | The name to resolve. | Required, 1 to 253 characters. |
| Record type | The type of record to look up. | A (default), AAAA, CNAME, MX, NS or TXT. |
| Expected value | The answer the record should return. | Optional, up to 255 characters. Leave it empty to only check that the record resolves. |
You cannot choose the nameserver (the server that answers DNS questions) used for the lookup.
Record types
Section titled “Record types”| Type | What it holds |
|---|---|
| A | The IPv4 address a name points to, such as 203.0.113.10. |
| AAAA | The IPv6 address a name points to. |
| CNAME | Another name this name points to, such as example.netlify.app. |
| MX | The mail servers that receive email for the domain. |
| NS | The nameservers in charge of the domain’s records. |
| TXT | Free text, often used to prove you own a domain or to publish email security rules. |
How a DNS check works
Section titled “How a DNS check works”Each check resolves the record from one of the monitor’s locations, taking turns through the locations you selected. The check fails if the record does not resolve or, when you set Expected value, if the answer does not match it.
The response time is the time taken to resolve the record.
StatusCheck re-checks a failure from another location before it marks the monitor Down. See Locations and confirmation.
What to watch with a DNS monitor
Section titled “What to watch with a DNS monitor”- Catch an expired or suspended domain. An A or NS monitor on your main domain fails when the domain stops resolving. You hear about a lapsed registration from StatusCheck, not from your customers.
- Watch a migration. When you move DNS providers or point a record at new infrastructure, set Expected value to the new address. The monitor fails if the record still returns the old one, or reverts to it.
- Protect mail delivery. An MX monitor tells you if your mail records disappear or change unexpectedly.
- Guard records other services rely on. A TXT monitor can watch a verification or policy record that a provider needs to stay in place.
Troubleshooting
Section titled “Troubleshooting”The monitor is down right after I changed a record. DNS answers are saved (cached) for a while, set by the record’s TTL (time to live). Until it runs out, some lookups still return the old value, and the check fails against your new Expected value. Wait for the TTL to pass.
The monitor is down, but the record resolves on my machine. Your machine may be using a cached answer or a DNS server inside your network. Open the monitor’s Logs tab to see which locations failed. Then compare the answer from a public DNS lookup website or service.
Related
Section titled “Related”- HTTP(s) monitors check the service behind the name.
- Locations and confirmation explains rotation and confirmation.
- Create a monitor covers the rest of the form.