LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-13-2004, 02:56 PM   #1
gunjan thakkar
LQ Newbie
 
Registered: Dec 2004
Location: India
Posts: 4

Rep: Reputation: 0
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
 
Old 12-13-2004, 03:02 PM   #2
jdelaros1
LQ Newbie
 
Registered: Sep 2003
Location: Austin, TX USA
Distribution: Fedora 1.0, 2.0 & SuSE 9.2
Posts: 20

Rep: Reputation: 0
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.
 
Old 12-14-2004, 01:19 PM   #3
gunjan thakkar
LQ Newbie
 
Registered: Dec 2004
Location: India
Posts: 4

Original Poster
Rep: Reputation: 0
hi frnd
i tried with the option of nsswitch.conf and it worked
thank you so much

bye
thanx again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
arp problem in pinging host cranium2004 Linux - Networking 2 05-17-2005 01:10 AM
error "unknown host" in Browser saurabhK Linux - Networking 1 03-29-2005 11:42 AM
Installed 2nd BCM5700 NIC, when Pinging on this subnet receive destination host unrea timhe Linux - Networking 2 05-12-2004 09:52 AM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM
'Unreachable Host' when pinging with RedHat 7.1. Help! SadTechie Linux - Networking 1 12-03-2001 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration