Skip to content

DNS Records Changed

DownBad noticed that one of the DNS records it watches for you changed. This page helps you find out whether the change was yours, keep it if it was, or undo it and lock down your accounts if it wasn’t, and then close the incident.

DNS (the Domain Name System) is the internet’s address book. For each name on the internet, such as example.com, it holds records: entries of a given type, each with a value. An A record gives the name’s address (the number other computers use to reach it), MX records name the servers that receive its email, and TXT records hold short notes that other services read, such as which servers may send its email. Your domain is the name you registered, such as example.com. The company that keeps its records is your DNS host: often the company you bought the domain from, or a service such as Cloudflare.

A DNS monitor is DownBad’s check of those records. It looks them up, and compares each record type it watches with the values it expects. An incident is open for one, and it shows a reason like one of these:

  • A records for example.com changed: missing [93.184.215.14]; unexpected [203.0.113.7]
  • A records for example.com changed: missing [93.184.215.14]
  • A records for example.com changed: unexpected [203.0.113.7]
  • A records for example.com changed: moved from CLOUDFLARENET - Cloudflare, Inc. (AS13335) to AMAZON-02 - Amazon.com, Inc. (AS16509); missing [104.16.1.1]; unexpected [52.1.1.1]
  • A records for example.com changed: moved from CLOUDFLARENET - Cloudflare, Inc. (AS13335) to AMAZON-02 - Amazon.com, Inc. (AS16509); unexpected [52.1.1.1]

The first word is the record type. missing lists the values the monitor expects that are no longer there, and unexpected lists values that are there but that the monitor doesn’t expect. A reason with only missing can also mean the record has gone altogether. This incident shows no failure type.

The monitor counts any difference as a change: every value it expects must be there, and no other value may be. Capital letters and a dot at the end of a name make no difference, except in TXT records, and nor does the order the values come in.

An A or AAAA record whose When the address changes setting is Fail only if the provider changes is compared by network instead. Each address belongs to a network, named by its ASN (autonomous system number, the registry number of the company that runs the network, such as AS13335 for Cloudflare). A new address passes when its network also has one of the addresses the monitor expects. It fails when it belongs to a network none of them do, and the reason then starts with moved from, naming the expected network first and the new one second. If DownBad can’t find which network an address belongs to, that address doesn’t fail the check.

Where the expected values come from depends on how the monitor was made:

  • A monitor added when you signed up, or with a bundle (a group of monitors for one site, under Bundles in DownBad’s sidebar), expects every record DownBad found then, with the values it found then. Its A and AAAA records are set to Fail only if the provider changes. If it found none, it expects an A record with any value.
  • A monitor you added yourself expects the values typed into its settings. A record with no values typed accepts any value. A and AAAA records you add yourself start on Fail only if the provider changes, and you can choose Fail the check instead. Records added before that was the default keep the setting they had, which is Fail the check unless someone changed it.

To see them, open the monitor from Monitors in DownBad’s sidebar. Its Configuration card shows each record type with the values it expects in a table — for example type A with value 93.184.215.14, or any value when no values were typed.

It is your domain’s records, which your DNS host keeps, not something in DownBad. DownBad didn’t open this incident on one check, either: it checked again from up to three other places in the United States, against the same expected values, and it opened the incident only when at least half of the places that answered saw a change too.

The one exception is a domain whose address depends on where the question comes from. Some DNS hosts, and CDNs (services that sit in front of your site and answer visitors from servers near them), give each part of the world a different address. DownBad can then see a change nobody made: see Your DNS host gives different answers in different places.

To look up your records without a terminal (the window where you type commands), use DigWebInterface, a free lookup page. Enter the name the reason names under Hostnames or IP addresses, and choose its record type under Type. Under Nameservers, choose Resolver with Cloudflare to see what the rest of the internet sees, or Authoritative to ask your domain’s own nameservers (the servers your DNS host answers from). Then select Dig.

These commands use nslookup, a lookup tool that comes with macOS and Windows. On Ubuntu or Debian, install the dnsutils package if it’s missing. Run them in a terminal: Terminal on a Mac, PowerShell on Windows. Every command only reads, and changes nothing.

1. Find what the monitor watches. The reason names the record type and the name: A records for example.com is the A record of example.com. The commands below look up an A record of example.com. Put your name in place of example.com, and the record type from the reason in place of A.

2. Ask a public DNS server what the record holds now. A DNS server answers questions about DNS records. This asks 1.1.1.1, Cloudflare’s public DNS server, which anyone can ask:

Terminal window
nslookup -type=A example.com 1.1.1.1
If it works
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
Name: example.com
Address: 172.66.147.243
Name: example.com
Address: 104.20.23.154

example.com has an A record, so the failure below is for no-such-host.example.com, a name under example.com with no A record:

If the record is gone
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
*** Can't find no-such-host.example.com: No answer

Compare the values with the reason. The values under unexpected should be there, and the ones under missing shouldn’t. They can be listed in any order. Non-authoritative answer means 1.1.1.1 answered from a copy it keeps, rather than from your DNS host.

3. Find your domain’s nameservers. For www.example.com, your domain is example.com:

Terminal window
nslookup -type=NS example.com 1.1.1.1
If it works
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
example.com nameserver = hera.ns.cloudflare.com.
example.com nameserver = elliott.ns.cloudflare.com.
Authoritative answers can be found from:

This one asked for downbad-unregistered-7f3k2q.com, a domain nobody has registered:

If the domain doesn't exist
Server: 1.1.1.1
Address: 1.1.1.1#53
** server can't find downbad-unregistered-7f3k2q.com: NXDOMAIN

The names tell you who your DNS host is: names ending in ns.cloudflare.com, as above, mean Cloudflare, and names such as ns-2048.awsdns-64.com mean Amazon Route 53, the DNS host run by AWS (Amazon Web Services).

4. Ask each nameserver what the record holds. A nameserver answers straight from your DNS host’s records, so it shows a change before any copy elsewhere catches up. Put your record type in place of A, your name in place of example.com, and the first nameserver step 3 listed in place of hera.ns.cloudflare.com:

Terminal window
nslookup -type=A example.com hera.ns.cloudflare.com
If it works
Server: hera.ns.cloudflare.com
Address: 108.162.192.162#53
Name: example.com
Address: 104.20.23.154
Name: example.com
Address: 172.66.147.243

This one asked for no-such-host.example.com, which has no record:

If the record isn't there
Server: hera.ns.cloudflare.com
Address: 108.162.192.162#53
** server can't find no-such-host.example.com: NXDOMAIN

Then run the same command with each of the other nameservers step 3 listed. They should all list the same values, in any order.

How to read what you found:

Start with one question: did you, or anyone on your team, make this change? Moving your site to a new web host, your email to a new provider, or your domain to a new DNS host all change records. If the answer is yes, follow You or your team made the change. If it’s no, first check the two causes after it, which can look like a change when nobody changed the record. If neither fits, follow Nobody you know made the change.

The causes below run from most to least likely.

This is the likely cause when you recognise the values under unexpected, such as the address of your new web host or the servers of your new email provider. Nothing is wrong with your domain: the monitor still expects the old values, and you keep the change by changing what the monitor expects.

  1. Open the monitor from Monitors in DownBad’s sidebar, and select Edit on its Configuration card.

  2. Under DNS Records, find the record whose Record Type the reason names. In its Expected Values, remove each value the reason lists under missing with the × beside it. Then type each value it lists under unexpected, pressing Enter after each one.

    A value with a comma in it, as some TXT records have, can’t be typed in: the box splits it at the comma. For such a record, remove every value instead, as below.

    To accept any value for this record from now on, remove every value instead. The monitor then checks only that the record exists, and its Configuration card shows any value.

    If your team deleted the record on purpose, the reason lists only missing, and step 2 of Check it yourself finds no record. Removing its values isn’t enough then, because the monitor would still check that the record exists. Remove the whole record from the monitor instead, with the × at the top of its box. That × shows only while the monitor watches more than one record. If this is its only record, change its Record Type to one that step 2 of Check it yourself still finds for the name, and remove every value. If your team removed the name altogether, so that step 2 finds no record of any type, the monitor has nothing left to watch: on the monitor’s page, select Delete Monitor, then Confirm. That removes this incident too, so the rest of these steps don’t apply.

  3. Select Save Monitor.

  4. Then follow Confirm DownBad sees the fix.

Your DNS host gives different answers in different places

Section titled “Your DNS host gives different answers in different places”

This is the likely cause when your nameservers, asked in step 4 of Check it yourself, list the values the monitor expects, other addresses of the same service, or only a canonical name = line, and the values in the reason keep changing from one incident to the next. Some DNS hosts and CDNs give each part of the world the address of a server near it. DownBad’s checks ask from several places, so they see addresses that nobody changed. Nothing is wrong with your domain.

  1. Open the monitor from Monitors in DownBad’s sidebar, and select Edit on its Configuration card.

  2. Under DNS Records, find the record that keeps changing. If it’s an A or AAAA record, set When the address changes to Fail only if the provider changes on it and on every other record of the same type: the monitor then fails only when an address moves to a different network. If the reason already starts with moved from, the record is set that way, and your service answers from a network the monitor hasn’t seen before. Large CDNs run several. Choose Keep passing instead to stop comparing addresses altogether. With Keep passing, you can still hear about an address the record has never answered before, without an incident: turn on DNS Address Changed on the DNS tab of the monitor’s notification profile. With Fail only if the provider changes, that alert covers only the new addresses the check lets pass, such as one on the same network as an address the record expects. An address on a new network still fails the check and opens an incident, and DNS Address Changed stays quiet about it. For any other type, remove every value in its Expected Values with the × beside each one. The monitor then checks only that the record exists, and stops comparing its values.

  3. If your name points at your CDN with a CNAME record (a record that points one name at another, such as www.example.com at a name your CDN gave you), the monitor can watch that record instead, because the name it points at stays the same wherever the question comes from. To find that name, run step 2 of Check it yourself with CNAME in place of A: it is the name after canonical name =. If it prints No answer instead (No records on Windows), your name has no CNAME record, so skip this step. If a record under DNS Records already has CNAME as its Record Type, the monitor watches it already. Leave it as it is if its value is that name, with or without the dot at the end. If its value is another name, change it as in You or your team made the change. If no record has CNAME as its type, select Add Record, choose CNAME as its Record Type, type the name under Expected Values without the dot at its end, and press Enter.

  4. Select Save Monitor, then follow Confirm DownBad sees the fix.

This is the likely cause when your domain’s nameservers, asked one by one in step 4 of Check it yourself, list different values for the same record. DownBad’s checks, like everyone else’s, may reach any of them, so some see the change and others don’t. It usually happens after a move to a new DNS host, when your domain still lists a nameserver of the old one.

  1. Find the nameservers your DNS host gave you: Cloudflare shows them on your domain’s Overview page, Amazon Route 53 in your domain’s hosted zone (its name for the records it keeps for a domain), and other DNS hosts in their dashboards.

  2. Compare them with the ones step 3 of Check it yourself listed. If the lists differ, change your domain’s nameservers to your DNS host’s, at the company you registered the domain with, your registrar: GoDaddy, Amazon Route 53, or your registrar’s own guide. Cloudflare’s guide says to wait up to 24 hours while your registrar updates your nameservers.

  3. If the lists match and the nameservers still disagree, one of them still holds old records. Ask your DNS host’s support to fix it.

  4. Run step 4 of Check it yourself again for each nameserver. Once they all list the same values, follow Confirm DownBad sees the fix.

This is the likely cause when nobody on your team recognises the change. Someone may have signed in to your DNS host or your registrar with a stolen password, or a person or a program with access changed the record by mistake. Treat it as a break-in until you know otherwise: whoever controls your records can send your visitors, and your email, anywhere.

  1. Find out who made the change, if your DNS host keeps a record of it. An audit log is a list of the changes made in an account, with who made each one. Cloudflare’s audit logs include changes to your domain’s settings and can be searched by user email and date. On Amazon Route 53, the Event history of AWS CloudTrail, which records actions taken in Route 53, shows who changed records, when, and from which address. To see Route 53’s changes there, choose US East (N. Virginia) in the region selector at the top of the page. If your DNS host keeps no such log, ask its support.

  2. Put the record back at your DNS host: give it the values the reason lists under missing, which the monitor’s Configuration card also shows, and remove the values under unexpected. Each DNS host has a guide to editing records: Cloudflare, Amazon Route 53, GoDaddy.

  3. Lock down the account at your DNS host, and at your registrar if that’s a different company. Change the password, and turn on two-step sign-in (a second proof that it’s you as well as your password, such as a code from an app on your phone, or a security key, a small device you plug in or tap). Sign out every other session (each other place where someone is signed in to the account), and delete any access key (a password that lets a program change your settings) you don’t recognise. Each company has a guide for an account someone else has used:

  4. Check your other records too. Whoever changed one may have changed others, above all MX, which decides where your email goes. Run step 2 of Check it yourself again with MX in place of A, then with TXT, and run step 3 again for your nameservers. Compare what they list with the values you set.

  5. Copies of the record that other DNS servers keep can show the changed value for a while after you put it back. How long is set by the record’s TTL (time to live). Cloudflare’s guide to managing DNS records says the TTL “controls how long each record is valid and — as a result — how long it takes for record updates to reach your end users”. Then follow Confirm DownBad sees the fix.

  1. Fix the cause first. A check that still fails while you work only adds to the time the incident takes to close.

  2. Open the incident and press Test Now. DownBad checks again within a few seconds instead of waiting for the next scheduled check.

  3. Wait a minute, then reload the incident page, which doesn’t update by itself. The incident closes by itself once enough checks in a row pass. You can’t close an incident by hand.

How many passing checks it takes. While an incident is open, DownBad checks less often after repeated failures. This is called back-off. Each failed check adds one step of back-off, up to 14. Each passing check takes one step away and asks for the next check straight away. When no steps are left, one more passing check closes the incident. So after a steady outage it takes one more passing check than there were failed checks while the incident was open, counting the one that opened it, and never more than 15.

These are the defaults. The monitor’s notification profile can change them for each monitor type under Backoff Config, and its settings are the ones that count: Recovery is how many passing checks in a row, with no back-off left, close the incident (2 by default, counting the check that takes the last step away), and Start after, Rate and Max interval decide when back-off starts and how far it goes. If the profile changes them, the step counts above and the waits below change with them.

How long that takes. After you press Test Now, those passing checks run back to back, a few seconds apart, so the incident usually closes within a minute. It takes longer when checks are slow to finish, such as a page that takes several seconds to load.

If you don’t press Test Now, the first passing check waits for the next scheduled one. With the default settings, from the third failed check on, DownBad waits 5 more minutes for each failure, up to an hour more than the monitor’s usual interval:

Monitor checks everyAfter 1 or 2 failed checksAfter 3After 6After 14 or more
1 minute1 minute6 minutes21 minutes61 minutes
5 minutes5 minutes10 minutes25 minutes65 minutes
1 hour1 hour1 hour 5 minutes1 hour 20 minutes2 hours
1 day1 day1 day 5 minutes1 day 20 minutes1 day 1 hour

Before you ask for help, collect:

  • the link to the incident, and the reason it shows, word for word
  • the output of the commands in Check it yourself, with the time you ran them and your time zone
  • the name of your DNS host, and of your registrar if it’s a different company
  • any change anyone on your team made to your DNS, and when
  • what your DNS host’s audit log shows, if it keeps one

Never send a password or an access key. Nobody needs one to help you.

Then send all of it to us through Contact Us.