DNS server picking up wrong IP address of server

MJB2011
MJB2011 used Ask the Experts™
on
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....
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Delete the NIC from VMware and add a new one.

Author

Commented:
Already done that.
Try

netsh interface ip set dns name="NIC NAME" static x.x.x.x
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Top Expert 2015

Commented:
configure static DNS reservation with MAC+IP, so that dhcp does not issue IP to others.
Senior System Administrator
Commented:
try this command....

netsh interface ipv4 set address "Local Area Connection" static 10.0.0.55 255.0.0.0 10.0.0.1

It might get an error "Object already exists"

netsh interface ipv4 set address "Local Area Connection" static 10.0.0.55 255.0.0.0 10.0.0.1

try both commands and check.

Author

Commented:
Ran teh command and it accepted the it without error.
Satish AutiSenior System Administrator

Commented:
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.

Author

Commented:
Not sure but that was the last thing I did and it worked.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial