We have an issue with DNS in our environment where the DNS record for a computer will not get updated when it moves to a new subnet. I manage our desktops so I have no access to nor am I involved with our DNS or DHCP servers. I know this a DNS or DHCP problem, however our server team has been unwilling or unable to fix it for several months now and I don't expect to have it fixed soon. I’m not looking for a solution to this DNS/DHCP problem, I’m looking for a workaround to find the computer's current IP when it does happen.
Take a look at the following CMD output:
C:\>nslookup pwd-d5767 Server: dnsserver.mycity.nw.us Address: 172.16.1.16 Name: pwd-d5767.ci.mycity.nw.us Address: 172.18.74.147 C:\>nslookup 172.18.45.174 Server: dnsserver.mycity.nw.us Address: 172.16.1.16 Name: pwd-d5767.ci.mycity.nw.us Address: 172.18.45.174
The computer PWD-D5767 was in use on one subnet and got the IP address 172.18.74.147. It was then moved to another subnet and got 172.18.45.174, which is it's current ip address. As you can see from the forward lookup, I get the old address when I lookup the hostname. As I did in this case, I normally have to call the user and have them do an ipconfig and tell me their current IP address. Calling the user and walking them through doing an ipconfig is a pain. However, it appears our DNS server knows the computers new ip address based on the result when I do the reverse lookup. I want to avoid calling users and having them read me their ip address. Is there an nslookup or some other command that would give me all the IP addresses the DNS server has for pwd-d5767?