LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   i m getting the error unknown host while im pinging with the host name (https://www.linuxquestions.org/questions/linux-general-1/i-m-getting-the-error-unknown-host-while-im-pinging-with-the-host-name-266003/)

gunjan thakkar 12-13-2004 02:56 PM

i m getting the error unknown host while im pinging with the host name
 
dear friends
i have two linux system
i m able to ping from one system to other system by both name and ip
but in other system i m not able to ping with hostname
i m getting the message unknown host
i m able to ping with ip address
i have checked the /etc/hosts
/etc/sysconfig/network
/etc/sysconfig/network-scrips/ifcfg-eth0

i will appreciate ur reply

gunjan

jdelaros1 12-13-2004 03:02 PM

Have you checked /etc/nsswitch.conf? Make sure you have a line that looks like this:

hosts: files

If you do, then verify /etc/hosts and make sure you have no typos. If you can ping by IP address, you should be able to ping by hostname.

gunjan thakkar 12-14-2004 01:19 PM

hi frnd
i tried with the option of nsswitch.conf and it worked
thank you so much

bye
thanx again


All times are GMT -5. The time now is 10:31 AM.