DNS record keeps changing
DNS Record keeps changing for a specific member server. Also, when trying to manually register the dns entry using the ipconfig /registerdns command/switch, I receive the error Windows IP Configuration Registration of DNS records failed: Not enough storage is available to complete this operation.
This issue happened to a colleague of mine today. After building a new virtual server, he set a static IP address on the server and created a DNS host record however the DNS record kept changing on him. It might take an hour or so but eventually the DNS record for the server would revert back to its old address. The actual IP address of the server was fine and never changed.
I checked the DHCP server and noticed an leased addresses for both NICs on the server. The server NICs were configured failover team. I noticed the IP addresses on the old DHCP leases were incorrect. They were the old leased IP addresses from when the server was first brought online. Deleting the old leased IP addresses for this server fixed the issue. The next question was why did this happen? We still aren’t sure but I suspect that there may have been a timing issue. It was definitely the old leased IP addresses causing the issue but why did the DHCP continue to dynamically register the old DNS information?
The way I understand it is that the DHCP client makes the request for an IP address. This wasn’t the case here because the server was statically assigned an IP. If we changed the DNS record, it would stay correct for a little while or until we rebooted the server at which point, the DNS record would change again. Strange. At any rate, the solution was to delete the old DHCP lease for the server. If anyone knows why this happened, please feel free to chime in.
Thanks!