DNS Record Write Rejected: Zone Identity Checks
In this article
When you see a “rejected DNS record write” error during a zone update, it usually means the DNS server refused the change because the record’s owner name, type, or data did not match the zone’s identity checks. These checks verify that the record belongs to the zone, the name is within the zone’s authoritative namespace, and the record type is allowed for that zone. This article explains why these rejections happen, how the checks work, and what you can do to fix them.
in t | Finish time | min | 50 | 0 in d | Distance | km | 10 | 0 out pace | Average pace | min/km | t / d | 2 out speed | Average speed | km/h | d / (t / 60) | 2
What Are Zone Identity Checks?
Zone identity checks are validation rules that a DNS server applies before accepting a record write (create, update, or delete) to a zone file or dynamic update. The server verifies that the record’s owner name is within the zone’s authoritative namespace (e.g., host.example.com belongs to example.com), that the record type is valid for that zone (e.g., you can’t add an NS record for a subdomain that is delegated elsewhere), and that the record data is syntactically correct. These checks prevent accidental or malicious writes that could corrupt the zone or break DNS resolution.
Why Do Rejections Occur?
Rejections typically happen for one of three reasons: name mismatch, type conflict, or data validation failure.
- Name mismatch: The owner name is outside the zone’s authoritative namespace. For example, trying to add
www.otherdomain.comto a zone forexample.com. - Type conflict: The record type is not allowed for the zone’s type (e.g., adding an
NSrecord for a subdomain that is already delegated to another server). - Data validation failure: The record data is malformed, such as an IP address out of range or a hostname with invalid characters.
Another common cause is a zone transfer or dynamic update where the update packet lacks proper signing (TSIG) or the source IP is not allowed to perform updates.
How the Checks Work
When a DNS server receives a write request (via dynamic update, zone transfer, or manual edit), it performs a series of checks:
- Zone containment: The owner name must be a subdomain of the zone’s apex (or the apex itself). The server compares the labels of the owner name with the zone’s name.
- Record type validity: The server checks if the record type is permitted for the zone. For example,
SOAandNSrecords are only allowed at the apex (except for delegated subdomains).PTRrecords are only allowed in reverse zones. - Data syntax: The server validates the record data format, such as IP address octets (0-255), hostname length (max 253 characters), and character set (letters, digits, hyphens, dots).
- Update authorization: For dynamic updates, the server verifies the source IP or TSIG signature against the zone’s update policy.
If any check fails, the server returns a REFUSED or NOTAUTH response and logs the rejection reason.
Common Scenarios and Fixes
Here are typical situations where you might see a rejection and how to resolve them:
- Adding a host record to the wrong zone: Ensure the owner name ends with the zone’s name. For example, if your zone is
example.com, the record must behost.example.com, nothost.example.org. - Delegating a subdomain: If you want to delegate
sub.example.com, you must create anNSrecord atsub.example.comand a glueArecord for the nameserver. If the nameserver is outside the zone, no glue is needed. - Reverse DNS (PTR) records: For reverse zones like
2.0.192.in-addr.arpa, the owner name is the reversed IP address. A common mistake is using the forward name as the owner. - Dynamic update from an unauthorized IP: Check the zone’s update policy and ensure the client’s IP is allowed, or use TSIG signing.
How to Choose the Right Fix
To choose the correct fix, first read the server’s log message. It usually states whether the problem is a name, type, or authorization issue. For example, if the log says “owner name out of zone,” you need to correct the owner name. If it says “update denied,” check your update policy. If it says “bad data,” validate the record’s syntax.
Comparison: Zone File Edits vs. Dynamic Updates
Zone file edits (manual changes to the zone file) are typically checked at load time. If a record violates identity checks, the entire zone may fail to load, and the server continues serving the old zone. Dynamic updates are checked in real-time, and a single bad record is rejected without affecting the rest of the zone. The latter is more flexible but requires proper authorization.
Costs and Safety Considerations
There is no direct monetary cost to fixing a rejected record, but the cost is in downtime or misconfiguration. A rejected write can leave a host unreachable or email routing broken. Safety-wise, always test changes in a staging environment, and back up your zone files before making bulk edits. For dynamic updates, use TSIG to prevent unauthorized changes.
Frequently Asked Questions
Why does my DNS server reject a record that looks correct?
Sometimes the record looks correct but the zone’s name is slightly different (e.g., trailing dot missing). Ensure the zone name in the server configuration matches the SOA record’s MNAME. Also, check if the record type is allowed for the zone type (e.g., AAAA in an IPv4-only zone is usually fine, but PTR in a forward zone is not).
Can I add a record with a hyphen in the hostname?
Yes, hyphens are allowed in hostnames, but the hostname must not start or end with a hyphen, and each label (between dots) must be 63 characters or less. If the server rejects it, check for leading/trailing hyphens or a label that exceeds 63 characters.
What does “NOTAUTH” mean in the response?
NOTAUTH means the server is not authoritative for the zone you are trying to update. This often happens when you send a dynamic update to a server that is not the primary master for that zone, or when the zone is configured as read-only.
How do I fix a rejected PTR record?
For a PTR record in a reverse zone, the owner name must be the reversed IP address with “.in-addr.arpa” (for IPv4) or “.ip6.arpa” (for IPv6). For example, for 192.0.2.5, the owner is 5.2.0.192.in-addr.arpa. If you are using a cloud DNS provider, they often have a separate interface for reverse DNS.
Is it safe to disable zone identity checks?
No. Disabling these checks can lead to zone corruption, DNS hijacking, or service outages. The checks are there to protect the integrity of the DNS. Instead, fix the underlying issue.