Avatar of MJB2011
MJB2011
 asked on

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....
DHCPDNSVMwareWindows 10Azure

Avatar of undefined
Last Comment
MJB2011

8/22/2022 - Mon
SiHodgy007

Delete the NIC from VMware and add a new one.
MJB2011

ASKER
Already done that.
SiHodgy007

Try

netsh interface ip set dns name="NIC NAME" static x.x.x.x
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
gheist

configure static DNS reservation with MAC+IP, so that dhcp does not issue IP to others.
ASKER CERTIFIED SOLUTION
Satish Auti

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
MJB2011

ASKER
Ran teh command and it accepted the it without error.
Satish Auti

Whats the result. if not accepted then run the command twice... with error or without...
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
compdigit44

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?
SiHodgy007

Not sure how changing the ip address with netsh updated the dns record.
MJB2011

ASKER
Not sure but that was the last thing I did and it worked.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck