DNS

DNS 10 NOTZONE vs 20 BADNAME

Both DNS 10 (NOTZONE) and 20 (BADNAME) 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, 20 means that duplicate key name. The key name in a TKEY negotiation is already in use or conflicts with an existing key.

Descripción

Name not contained in zone. A name used in the Prerequisite or Update section is not within the zone denoted by the Zone section.

Cuándo lo verás

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).

Cómo solucionarlo

Ensure all names in the update are within the target zone. Check for typos in the zone name or the records being updated.

Descripción

Duplicate key name. The key name in a TKEY negotiation is already in use or conflicts with an existing key.

Cuándo lo verás

A TKEY key establishment failed because a key with the same name already exists on the server from a previous session that was not properly cleaned up.

Cómo solucionarlo

Use a unique key name for each TKEY session (e.g., append a timestamp or random suffix). Delete stale keys on the server if they are no longer needed.

Diferencias clave

1.

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.

2.

DNS 20: Duplicate key name. The key name in a TKEY negotiation is already in use or conflicts with an existing key.

3.

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).

4.

You encounter 20 when a TKEY key establishment failed because a key with the same name already exists on the server from a previous session that was not properly cleaned up.

Cuándo usar cada uno

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 20 (BADNAME): Use a unique key name for each TKEY session (e.g., append a timestamp or random suffix). Delete stale keys on the server if they are no longer needed.

Saber más