My DNS check is failing
An incident on a DNS check is headed DNS check failing. The only failure that comes from a record itself is DNS record does not match, for a record set you pinned. If Alopex could not reach your nameservers, see Alopex can't reach my site.
The rest of this page covers the recommendations on the DNS records tab, under Recommendations. They are advice. They never fail the check and never send an alert. Each shows a label, Problem, Warning or Suggestion, and the name it is about. How they work, and how to dismiss one, is on About DNS checks.
The commands use dig. Replace <your-domain> with the registered domain the check watches, for example example.co.uk for app.example.co.uk.
DNS record does not match
What you see
The incident reads DNS check failing, with a message such as www.example.com A is 203.0.113.9, expected 203.0.113.10. It names the host, the record type, what Alopex found and the pin. When several pins differ it adds (and 2 more). empty means the record set has no records.
Likely causes
- The record was changed on purpose, for example a migration or a new provider, and the pin is out of date.
- The record was changed by mistake, or by someone who should not have access to your DNS.
- Your DNS provider is serving an old or partial copy while a change spreads between its servers.
- A provider that rotates addresses, such as a load balancer or a content delivery network, answers with values other than the ones you pinned.
How to check
Open the DNS records tab. The Records table shows what Alopex last saw, and Change history shows what changed and when.
Find the zone's nameservers, then ask one of them for the record, as Alopex does:
dig +short NS <your-domain> dig +short A <host> @<nameserver>
Use the record type from the message in place of
A.Compare the answer with the pin. Open the check with Edit DNS check, where the row says
Fails if this changes fromand shows the pinned values.
How to fix
If the change was a mistake or unauthorised, restore the record at your DNS provider, and secure the provider and registrar accounts. The check recovers on its own once a run passes.
If the change was right, move the pin to the new values. You cannot type pinned values, so use one of these:
- Select Reset baseline on the DNS records tab. It updates every pin that differs to the current values and runs the check straight away. It also forgets the stored history of all record sets. A pin whose live answer is empty or does not exist is not updated.
- Or edit the check with Edit DNS check, set the row to another mode, and save. Edit it again, choose Pinned, and save. The pin becomes the live values and the history is kept. Saving does not run the check, so then select Check now on the DNS records tab.
If the record set now has no records or does not exist, neither route can re-pin it. Reset baseline skips it, and Pinned cannot be chosen on a row with no values. Restore the record, or set the row to another mode and save.
Either way the check recovers on its own once a run passes. See The baseline and Records.
If the record set rotates, change its watch mode to New values only, or pin fewer record sets. Rotating values never suit a pin.
Email (SPF, DMARC, MX)
These recommendations are about how your domain sends and receives mail. MX records say which servers receive mail for your domain. SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail) and DMARC (Domain-based Message Authentication, Reporting and Conformance) are the records that let a receiving mail server decide whether mail claiming to be from your domain is genuine. Alopex does not read your mail or see which servers send it.
No SPF record
What you see
A Warning reading No SPF record, for the registered domain. No TXT record there starts with v=spf1. When the domain also has a null MX, you see Domain takes no mail, but SPF does not say it sends none instead.
Likely causes
- SPF was never set up.
- The record exists on a different name, such as
www, rather than on the registered domain. - The record is there but does not begin with
v=spf1, for example because of a typing mistake.
How to check
dig +short TXT <your-domain>
Look for a line beginning "v=spf1.
How to fix
Publish a TXT record on the registered domain that starts with v=spf1, lists your mail providers and ends with -all, or ~all while you are checking your senders. Your mail providers' documentation gives the exact include: entries to use.
More than one SPF record
What you see
A Problem reading More than one SPF record. Two or more TXT records on the registered domain start with v=spf1.
Likely causes
- A second provider told you to add its own record, and you added it beside the first.
- An old record was never removed after a change of provider.
How to check
dig +short TXT <your-domain>
Count the lines that begin "v=spf1.
How to fix
Merge them into a single TXT record that starts with v=spf1, with every provider's include: entry in it. With two records, receivers treat SPF as broken and may reject your mail.
SPF lets anyone send as this domain
What you see
A Problem reading SPF lets anyone send as this domain. The SPF record ends +all, or a bare all, which passes mail from every server on the internet.
Likely causes
- The record was written as a placeholder and never finished.
- Someone typed
+allwhile testing, to stop mail being rejected.
How to check
dig +short TXT <your-domain>
Read the end of the v=spf1 line.
How to fix
End the record with -all, or ~all while you are checking your senders.
SPF does not say what to do with other senders
What you see
A Warning reading SPF does not say what to do with other senders. The record ends ?all, or it has no all term and no redirect= term, so mail from servers you did not list is neither passed nor failed. When the domain also has a null MX, you see Domain takes no mail, but SPF does not say it sends none instead.
Likely causes
- The record ends
?all, which means neutral. - The
allterm was left off when the record was edited.
How to check
dig +short TXT <your-domain>
Read the end of the v=spf1 line.
How to fix
End the record with -all, or ~all while you are checking your senders.
SPF only soft-fails other senders
What you see
A Suggestion reading SPF only soft-fails other senders. The record ends ~all, so receivers accept mail from servers you did not list and only mark it as suspicious. When the domain also has a null MX, you see Domain takes no mail, but SPF does not say it sends none instead.
Likely causes
~allis the usual setting while you are working out who sends mail for you, and it was never tightened.
How to check
dig +short TXT <your-domain>
Read the end of the v=spf1 line.
How to fix
Once every service that sends your mail is listed, change ~all to -all. Check your DMARC reports first, so that you do not block a sender you forgot.
No DMARC record
What you see
A Warning reading No DMARC record, for _dmarc.<your-domain>. Nothing there starts with v=DMARC1. Alopex follows a CNAME at that name to a hosted DMARC service, and reads the record there.
Likely causes
- DMARC was never set up.
- The record was published on the wrong name, such as the registered domain rather than
_dmarc. - A hosted DMARC service's
CNAMEpoints at a record that does not exist.
How to check
dig +short TXT _dmarc.<your-domain>
How to fix
Publish a TXT record at _dmarc that starts v=DMARC1; p=none; rua=mailto:<your-address>, and tighten the policy once the reports look right. Without DMARC, receivers have no instruction for mail that fails SPF and DKIM, so spoofed mail can get through.
More than one DMARC record
What you see
A Problem reading More than one DMARC record. Two or more TXT records at _dmarc start with v=DMARC1.
Likely causes
- A provider's set-up added a second record beside the one you had.
- An old record was left behind.
How to check
dig +short TXT _dmarc.<your-domain>
How to fix
Keep a single TXT record at _dmarc. With two, receivers ignore DMARC for the domain entirely.
DMARC is monitoring only
What you see
A Suggestion reading DMARC is monitoring only. The policy p= is none, missing or not one of quarantine and reject, so mail that fails DMARC is still delivered.
Likely causes
p=noneis the usual starting point while you collect reports, and it was never tightened.- The
p=tag is missing or misspelt.
How to check
dig +short TXT _dmarc.<your-domain>
Read the p= tag.
How to fix
When the reports show your own mail passing, move to p=quarantine, then p=reject.
DMARC sends no reports
What you see
A Suggestion reading DMARC sends no reports. The DMARC record has no rua= tag.
Likely causes
- The record was written with only a policy.
- The report address was removed.
How to check
dig +short TXT _dmarc.<your-domain>
Look for a rua= tag.
How to fix
Add rua=mailto:<your-address> to the record. Reports show who is sending mail as your domain, and whether your own mail passes.
MX points at a CNAME
What you see
A Problem reading MX points at a CNAME (<target>), naming the mail server. A mail server name must point at an address, not at an alias, and some senders refuse to deliver otherwise. Alopex checks up to 10 MX targets.
Likely causes
- The mail provider gave you a name that is itself an alias, and you used it directly.
- The target was an address record that was later changed into an alias.
How to check
dig +short MX <your-domain> dig +short CNAME <mx-target>
If the second command prints a name, the target is an alias.
How to fix
Point the MX record at the name the CNAME resolves to, or ask your mail provider which name to use.
MX points at an IP address
What you see
A Problem reading MX points at an IP address (<target>). An MX record must name a host, and most senders will not deliver to a bare address.
Likely causes
- An address was typed where a host name belongs.
How to check
dig +short MX <your-domain>
An MX value looks like 10 mail.example.com.. A value ending in an address is the problem.
How to fix
Create an A record for the mail server, for example mail.<your-domain>, and point the MX record at that name.
MX target does not resolve
What you see
A Problem reading MX target does not resolve (<target>). The mail server name does not exist, or has no A or AAAA record, so mail cannot be delivered there.
Likely causes
- The name has a typing mistake.
- The mail provider's host was retired or renamed.
- The
Arecord for your own mail server was deleted.
How to check
dig +short MX <your-domain> dig A <mx-target>
A status of NXDOMAIN, or an empty answer, means the name has no address.
How to fix
Correct the name in the MX record, or give that name an A or AAAA record.
No MX record
What you see
A Suggestion reading No MX record, for a registered domain that has an A or AAAA record but no MX. Senders then try to deliver mail to your website's address instead.
Likely causes
- The domain is web only and never took mail.
- The
MXrecords were removed when you moved mail provider.
How to check
dig +short MX <your-domain>
An empty answer means there is no MX record.
How to fix
If the domain does take mail, add the MX records your mail provider gives you. If it takes none, publish a null MX, a TXT record v=spf1 -all, and a DMARC record with p=reject. In most providers' forms a null MX is an MX record with priority 0 and a target of a single dot (.). That tells senders to stop, and tells receivers to reject mail that claims to come from you.
Domain takes no mail, but SPF does not say it sends none
What you see
A Warning reading Domain takes no mail, but SPF does not say it sends none. The domain has a null MX (0 .), which says it receives no mail, but its SPF record does not end -all, or there is none.
Likely causes
- The null
MXwas added, and SPF was left for later. - The SPF record was kept from a time when the domain sent mail.
How to check
dig +short MX <your-domain> dig +short TXT <your-domain>
How to fix
Publish v=spf1 -all as the only SPF record. Otherwise others can still send mail that appears to come from the domain.
Nameservers and records
These recommendations are about the nameservers that answer for your domain, and the records that point away from it.
Only one nameserver
What you see
A Warning reading Only one nameserver. The registered domain has a single NS record. If that server goes down, the whole domain stops resolving.
Likely causes
- The DNS provider gave you only one, or you added only one at your registrar.
- A second was removed during a move between providers.
How to check
dig +short NS <your-domain>
One line means one nameserver.
How to fix
Add at least one more nameserver, ideally on a different network. Most DNS providers give you two or more to use. Set them at your registrar.
No CAA record
What you see
A Suggestion reading No CAA record. Without one, any certificate authority may issue certificates for the domain.
Likely causes
- CAA is optional and was never set up.
How to check
dig +short CAA <your-domain>
An empty answer means there is none.
How to fix
Publish CAA records that name only the authorities you use, for example 0 issue "letsencrypt.org". List every authority you use, including any your hosting or content delivery provider uses for you.
Note
A CAA record that leaves out an authority stops that authority issuing or renewing your certificates. Add CAA records only once you know which authorities issue yours.
Name points at a name that does not exist
What you see
A Problem reading <host> points at a name that does not exist (<target>), for a host Alopex watches. The host is an alias for a name that no longer exists. Alopex checks up to 10 aliases.
Likely causes
- A service the subdomain pointed at, such as a hosting plan, a storefront or a campaign tool, was cancelled or deleted.
- The target name has a typing mistake.
- The target belonged to a domain that has since expired.
How to check
dig +short CNAME <host> dig A <target>
A status of NXDOMAIN on the second command confirms that the target does not exist.
How to fix
Remove the CNAME, or point it at a name you control.
Warning
Whoever registers or claims the missing name next can serve content on your subdomain. Remove a record like this soon, even if nothing links to it.