最佳解答者

DHCP not updating DNS for printers

問題

I'm using a 2008R2 Domain controller for DHCP and DNS. The DNS zone is AD integrated. Printers that are obtaining IP addresses through DHCP are not getting their names registered in DNS. XP and Win7 workstations are.

DHCP has only one zone. Its options point to the DC's IP for DNS and have the correct FQDN for their suffix.

DHCP DNS tab has Enable DNS dynamic... checked and Always dynamically update DNS A and PTR records selected. Discar A and PTR... is checked as is Dynamically update DNS A and PTR records for DHCP clients that do not request...

DNS has Dynamic Updates set to Nonsecure and Secure.

Printers are obtaining addresses when their restarted but not being registered in DNS. Their names do not exist in DNS but show up in DHCP.

解答

In DHCP scope properties, DNS tab, you'll also need to check the box for
"Dynamically update DNS A and PTR records for DHCP clients that do not request updates (for example, clients running Windows NT 4.0)."

If your zone is set to Secure Only, it would prevent printers that are not AD aware from registering (Secure Only uses Kerberos to authenticate), as well as if the DNS suffix for the zone can not be set (many printes are this way).

I would also suggest to enable Scavenging, and configure DHCP to own all records it registers so it properly updates any IP changes (whether for the printers, workstations, laptops, etc). This way DHCP will control and register everything. Here's more info
in my blog.

所有回覆

In DHCP scope properties, DNS tab, you'll also need to check the box for
"Dynamically update DNS A and PTR records for DHCP clients that do not request updates (for example, clients running Windows NT 4.0)."

If your zone is set to Secure Only, it would prevent printers that are not AD aware from registering (Secure Only uses Kerberos to authenticate), as well as if the DNS suffix for the zone can not be set (many printes are this way).

I would also suggest to enable Scavenging, and configure DHCP to own all records it registers so it properly updates any IP changes (whether for the printers, workstations, laptops, etc). This way DHCP will control and register everything. Here's more info
in my blog.

If there is any update on this issue, please feel free to let us know.

We are looking forward to your reply.

Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

So, we are running Win2K8 R2 SP1 and using DHCP for printers and the records are not updating DNS. We are AD Integrated Zones and running Secure only. Do I need to create static entries from my printers or is there a change I need to make so
they will register? The checkbos mentioned above is checked on the DHCP servers. Would creating a Workstaion Object in AD with the printer name solve the problem?

Note: If using DHCP with credentials, and Option 081 tab in DHCP properties (that's the DNS tab), then DHCP will register for all clients. Otherwise, if set to Secure Only, then that means the DHCP client must be authorized before it can register. Matter
of fact it uses Kerberos. If the printers do not have the ability to use Kerberos, then you either havee to manually create static entries, or configure DHCP to use credentials or add the DHCP server account to the DnsUpdateProxy group.

I don't have a Windows 2000 installation to double check if it was available or not. I don't remember. And besides selecting, "Enable updates for DNS clients that do not support Dynamic updates," you would also select to Always dynamically uipdate
DNS A and PTR records" (disregard the name protection selection):

Currently I have a similar problem.
After turning on the printer it obtains an IP
address from the DHCP server.The DHCP server
registers the printer in the DNS. However,
after the renewal of the lease, the DHCP server deletes the
DNS entry. The result isthat the printername can not be resolved.

Current configuration:

Domaincontroller is DNS and DHCP server

"Enable DNS dynamic updates according to the settings below" is enabled

"Allways dynamically update DNS A and PTR records" is enabled

"Discard A and PTR records when lease is deleted" is enabled

"Dynamically update DNS A and PTR records for DHCP client that do not request updates ..." is enabled