QUESTION
On my Windows XP workstation, I can find the machine I want to connect to in DNS with nslookup:
1 | nslookup wolfman |
On my Windows XP workstation, I can find the machine I want to connect to in DNS with nslookup:
1 | nslookup wolfman |
But, when I try to connect to that machine, I get an error telling me that the machine can’t be found (i.e., can’t be looked up in DNS):
1 | C:\> ping wolfman |
I am able to connect if I use the IP address directly:
1 | C:\> ping 192.168.1.178 |
ANSWER 1
I believe that nslookup opens a winsock connection on the DNS port and issues a query, whereas ping uses the DNS Client service. You could try and stop this service and see whether this makes a difference.
Some commands that will reinitialize various network states :
- Reset WINSOCK entries to installation defaults :
netsh winsock reset catalog
- Reset TCP/IP stack to installation defaults :
netsh int ip reset reset.log
- Flush DNS resolver cache :
ipconfig /flushdns
- Renew DNS client registration and refresh DHCP leases :
ipconfig /registerdns
- Flush routing table :
route /f
(this will remove all your gateways until you restart!)
ANSWER 2
Try ping with hostname followed by a dot. So instead of ping wolfman
use ping wolfman.
That should get you resolving without having to do workarounds with hosts file, etc.