can't ping a pc by computer name

had a windows 7 Machine A that can ping by IP but not by the computer name
When ping from MachineA,
C:\>ping hostname
Ping request could not find host hostname. Please check the name and try again.

C:\>ping MachineA

Pinging MachineA [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

When ping MachineA from other pcs
C:\> ping MachineA
Ping request could not find host MachineA. Please check the name and try again.
grnowAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
grnowConnect With a Mentor Author Commented:
ended up reformatting the pc as a last method to resolve it
0
 
Radhakrishnan RConnect With a Mentor ITCommented:
Hi,

What does the hosts file shows? c:/windows/system32/drivers/etc/hosts (open with notepad). Usually it should have 127.0.0.1       localhost. Is it appearing in it? if not, add the entry and see it works?

Also, DNS client service>>stop/ start it and check it makes any difference.
0
 
Radhakrishnan RConnect With a Mentor ITCommented:
0
 
grnowAuthor Commented:
hosts file show

#localhost name resolution is handled within DNS itself
# 127.0.0.1   localhost
#  1::1            localhost

had followed the above article method but still the same
0
 
grnowAuthor Commented:
other suggested methods does not work for this particular scenario. reformatting is a faster way at times to cut down more time on troubleshooting.
0
All Courses

From novice to tech pro — start learning today.