Wednesday, 5 March 2014

Can Ping by IP Address but not by Computer Name

Description:


Hi, in this article, I am going to explain about DNS Name Resolution problem to IP Address. In LAN network environment, we have frequently experienced this Name Resolution problem with ip address.

The following scenarios are we face in day to day life.
One can:
  • Ping Remote Machine by IP Address but can not by Computer Name
  • Access Remote Share by IP Address in Share Path but can not by Server Name
  • Access Remote Web URL by IP Address in URL but can not by Machine Name
  • Connect Remote Desktop by IP Address in  but can not by Machine Name
The possible causes for these problems are:

Solution 1: Check your Computer is correct or not for IP Address

   You can check the machine name is correct for corresponding ip address by using the following command.
ping -a 192.168.56.102
After running this command, you could see the computer name in Ping results.

Can Ping and Access Remote Machine by IP Address but can not by Computer Name or Machine Name


Solution 2: Flush and Reset a client resolver cache and Renew DNS client registration

Flush and Reset a client resolver cache using following ipconfig command
ipconfig /flushdns
Refer: http://technet.microsoft.com/en-us/library/cc781949(v=ws.10).aspx

Renew DNS client registration using this ipconfig command
ipconfig /registerdns
Refer: http://technet.microsoft.com/en-us/library/cc780467(v=ws.10).aspx

Solution 3: Edit DNS Lookup Host file entry

   You can add entry in DNS Host file to create mapping between IP Address and Computer Name or Machine Name.

   1. Go to file location: C:\Windows\System32\drivers\etc
   2. Copy the hosts file and paste it in your desktop.

Ping and Access Remote Machine by IP Address working but by Computer Name or Machine Name not working

   3. Open the host file in notepad and add entry for the Machine Name and IP Address which you want to resolve and save the file.

Can Connect Remote Desktop by IP Address in VBN, RDP and MSTSC but not by Computer Name or Machine Name

   4. Then copy and replace this file into existing hosts file in C:\Windows\System32\drivers\etc

Solution 4: Firewall restriction by Computer or Machine Name

 Check the Inbound and Outbound Rules of Firewall settings in Local machine and Remote machine. and ensure there is not Deny entry for corresponding machine name.

Can Access Remote Share by IP Address but not by Computer Name or Machine Name


Advertisements
Advertisements

2 comments:

  1. Thanks guys it worked, but still don't understand why we need to manually add hosts.

    ReplyDelete