Avatar of Muahammad
Muahammad asked on

DNS issue with DHCP releaes IP Address

Hi All
Today I have found there are some users PC’s DNS not matching with DHCP IP’s so i cants reach the computer by computer name.
How can I manage if DHCP releases a new IP address to the computer and the same time update DNS?

* server 2012 rDHCPDNSActive Directory* server 2019

Avatar of undefined
Last Comment
Hello There

8/22/2022 - Mon

What are you using as DHCP and DNS servers?


DNS and DHCP server is server 2019. both are separate windows VM

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes

It requires an additional step given that you have the servers on different VMs.


Thank you I will make changes and update you
Hello There

A few points to note.

1. Have you configured Server Options?
DHCP -> IPv4 -> Server Options -> Configure Options -> Add:
006 DNS Servers = DNS server IP adresses, use all if possible
015 DNS Domain name = FQDN

2. Have you configured Scope Options?
DHCP -> IPv4 -> YourScope -> Scope Options -> Configure Options -> Add:
003 Router = default gateway IP address
006 DNS Servers = DNS server IP adresses, use all if possible
015 DNS Domain name = FQDN

3. DHCP -> right-click the IPv4 -> DNS tab -> make sure that "Allways dynamically update DNS records" and "Discard A and PTR records..." options are checked.

4. Have you pointed the router to the new DHCP server? If not, add the IP helper-address on the main router.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

@Hello There:

There was an additional step mentioned in the link for cases where the DNS and DHCP servers are not on the same server:
If the DHCP server is on a different machine than the Domain Controller, make sure to include the DHCP server in the DnsUpdateProxy group in Active Directory (see figure below). Otherwise, the DHCP server will not be able to update the records on DNS server.

I wasn't aware of this step.

Hi Hello There and CompProbSolv ,

I have followed DHCP setting and  I have found duplicate host entry with same IP address.
I have run Start-DnsServerScavenging ON DNS server and  I can see below events.


The DNS server has completed a scavenging cycle but no nodes were visited. Possible causes of this condition include:
  1) No zones are configured for scavenging by this server.
  2) A scavenging cycle was performed within the last 30 minutes.
  3) An error occurred during scavenging.
The next scavenging cycle is scheduled to run in 72 hours.

How can avoid duplicate host record and delete old dns entry

Hello There

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question