As seen below the given hostname is not pingable presently.

19:42:43/lib $hostname
19:42:55/lib $ping mellyrn.local
ping: cannot resolve mellyrn.local: Unknown host

Note that the internet IS reachable:

19:43:02/lib $ping www.oracle.com
PING e7075.x.akamaiedge.net ( 56 data bytes
64 bytes from icmp_seq=0 ttl=57 time=5.872 ms
64 bytes from icmp_seq=1 ttl=57 time=5.735 ms
64 bytes from icmp_seq=2 ttl=57 time=5.824 ms
--- e7075.x.akamaiedge.net ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 5.735/5.810/5.872/0.057 ms

Let us take a look at the net config:

19:44:54/lib $ifconfig -a
    ether b8:f6:b1:15:dd:bf
    inet netmask 0xfffffc00 broadcast
    media: autoselect
    status: active
  • can you post the content of /etc/hosts file Dec 2, 2014 at 4:17
  • @javadba Please add the system version of Mac OS X to your question
    – klanomath
    Dec 2, 2014 at 10:58

2 Answers 2


I do not have an answer of why this situation occurred. However, the problem was corrected by restarting networking:

 $sudo ifconfig en0 down
 $sudo ifconfig en0 up

I believe his problem is because he assigned his computer a hostname like: mellyrn.local . What should have happened is that he assign his pc a hostname of mellyrn. The you append ".local" to the ping.hostname command and ping like: mellyrn.local

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .