DNS 10 NOTZONE vs 17 BADKEY
Both DNS 10 (NOTZONE) and 17 (BADKEY) belong to the DNS Response Codes (RCODEs) category. 10 indicates that name not contained in zone. A name used in the Prerequisite or Update section is not within the zone denoted by the Zone section. Meanwhile, 17 means that key not recognized. The TSIG key name in the message is not configured on the server.
描述
Name not contained in zone. A name used in the Prerequisite or Update section is not within the zone denoted by the Zone section.
何时出现
Your dynamic update tried to modify a record that falls outside the zone specified in the update message (e.g., updating foo.example.org in the example.com zone).
如何修复
Ensure all names in the update are within the target zone. Check for typos in the zone name or the records being updated.
描述
Key not recognized. The TSIG key name in the message is not configured on the server.
何时出现
Your TSIG-signed query or update references a key name that the server does not have in its keyring, so it cannot verify the signature.
如何修复
Ensure the TSIG key name matches exactly (case-sensitive) on both client and server. Add the missing key to the server's configuration if it is a new key.
主要区别
DNS 10: Name not contained in zone. A name used in the Prerequisite or Update section is not within the zone denoted by the Zone section.
DNS 17: Key not recognized. The TSIG key name in the message is not configured on the server.
You encounter 10 when your dynamic update tried to modify a record that falls outside the zone specified in the update message (e.g., updating foo.example.org in the example.com zone).
You encounter 17 when your TSIG-signed query or update references a key name that the server does not have in its keyring, so it cannot verify the signature.
何时使用哪个
For 10 (NOTZONE): Ensure all names in the update are within the target zone. Check for typos in the zone name or the records being updated. For 17 (BADKEY): Ensure the TSIG key name matches exactly (case-sensitive) on both client and server. Add the missing key to the server's configuration if it is a new key.