DNS server picking up wrong IP address of server

Hi all,

Have an odd one. Just built a 2016 server (VM) and done the usually changed the DHCP address to a static as configured on the NIC. However rather than updating the DNS record it keeps adding the wrong address in teh DNS entry.

I have checked the DHCP server and deleted the original lease.

I have deleted the DNS entry and and run an registerdns command from server.

I have gone into registry of server and cleaned out any old NIC entries.

Not sure what where to go next....
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Delete the NIC from VMware and add a new one.
MJB2011Author Commented:
Already done that.

netsh interface ip set dns name="NIC NAME" static x.x.x.x
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

configure static DNS reservation with MAC+IP, so that dhcp does not issue IP to others.
Satish AutiSenior System AdministratorCommented:
try this command....

netsh interface ipv4 set address "Local Area Connection" static

It might get an error "Object already exists"

netsh interface ipv4 set address "Local Area Connection" static

try both commands and check.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MJB2011Author Commented:
Ran teh command and it accepted the it without error.
Satish AutiSenior System AdministratorCommented:
Whats the result. if not accepted then run the command twice... with error or without...
I have run into an odd issue in the past where a IP of a VM was still reachable after the VM was powered down and deleted. After working with VMware support the issue was with the host and was cleared with a reboot of the ESXi host.  As a test have you tried to vMotion the VM to another host to see if the issue persist?
Not sure how changing the ip address with netsh updated the dns record.
MJB2011Author Commented:
Not sure but that was the last thing I did and it worked.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.