PTR record registration for IPv4 address [[192.168.1.1]] and COMPUTERNAME failed with error 9017 (DNS bad key.

Stark 0 Reputation points
2025-04-16T13:18:33.74+00:00

After exporting/importing DHCP from a server that was failover over to (that one was a 2012 Server) to a 2019 Standard Server, I'm seeing this error in the event viewer.

PTR record registration for IPv4 address [[192.168.1.1]] and COMPUTERNAME failed with error 9017 (DNS bad key.

Everything is working fine, but it appears that every time a dchp address is given out, i see that error in the event viewer.

Any idea what is going on?

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Oliver Nguyen 440 Reputation points Independent Advisor
    2025-08-11T10:32:31.6933333+00:00

    Hi Iron Man,

    The reason you faced that problem is because during the export/import or failover process, the DHCP server’s stored TSIG‐style key (or explicit “credentials” entry) for DNS dynamic updates isn’t transferred. The new server attempts a secure DNS update against your reverse zone but presents an invalid key or no credentials, so DNS rejects it with “bad key." The DHCP address assignment itself still works, because giving out IPs does not depend on the DNS update succeeding.

    => Configure Explicit Credentials:

    1. Open DHCP MMC on your Windows 2019 server.
    2. Right-click the IPv4 node → PropertiesDNS tab.
    3. Under “Dynamic update credentials,” click Credentials…
    4. Enter a domain user account (or gMSA) with permission to update the reverse zone:
      • Add that user to the built-in DnsUpdateProxy group (recommended) or delegate Create PTR permissions on the specific zone.
      • Click OK, then Apply.
      This ensures DHCP signs its updates with valid credentials.

    Remember to confirm the Fix:

    From a client, run ipconfig /renew and watch the DHCP logs: The Event ID 20322 errors should stop. You should see successful “DHCPv4: Dynamic DNS Update” entries.

    1. In DNS Manager, confirm new PTR records appear without error.

    ==============================================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.