RE: Can't ping by hostname only by IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you add one of the other machines in your local /etc/hosts with its ip
address you should then be able to ping that machine by name.

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Dave Martini 1
Sent: Tuesday, February 08, 2005 3:03 PM
To: redhat-list@xxxxxxxxxx
Subject: Can't ping by hostname only by IP address


I just installed RHEL WS 3.0 and I can ping other hosts in my subnet
by IP address but not by hostname.

The hosts file in my /etc/nsswitch.conf file looks like this

hosts:      files dns

I have one IP address of one of my DNS servers in the /etc/resolv.conf
file.

But when I type

ping hostname

it says "unknown host"

Is there some other file I need to update?

Thanks a lot!
Dave Martini
LLNL

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux