Ask Your Question
1

Why can I not ping host?

asked 2015-01-04 11:53:34 -0500

Lindh-E gravatar image

In /etc/hosts/ I have

192.0.2.1 server example.com server.home

I can ssh into either and ping server successfully but if I try to ping server.home it says ping: unknown host server.home.

Why is this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-01-05 00:19:37 -0500

pnemade gravatar image

Check this on how to write /etc/hosts file.

edit flag offensive delete link more
0

answered 2015-01-08 19:24:03 -0500

SantoshHoropter gravatar image

Change your file to 192.0.2.1 # server example.com server.home

you'll be fine.

With regards Horopter

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-01-04 11:53:34 -0500

Seen: 529 times

Last updated: Jan 08 '15