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

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

 



In your /etc/resolv.conf file you also need a search line for DNS suffixes.
An example would be as follows:

search redhat.com google.com
nameserver 192.168.1.1

Jay Berryman
Systems Engineer, RHCT, RHCE
SITEL World Wide
jay.berryman@xxxxxxxxx
Work:  (402)-963-6347
Cell:    (402)-598-1737
 

This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and confidential.
If the reader of the message is not the intended recipient, or the
authorized agent of the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited. If you have
received this communication in error, please notify SITEL immediately by
telephone at 402.963.6001 and delete the message and any attachments from
your system. Thank you for your cooperation


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of Dave Martini 1
Sent: Tuesday, February 08, 2005 16:03
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