PDA

View Full Version : ping problem


Dielectric
2005-09-13, 11:43 AM CDT
Hello,

I am having trouble with a severe I am trying to configure. The problem is when I issue a ping, I can only ping ip addresses. Ping localhost returns ping: unknown host localhost. It does not do any name resolution but works fine with ip addresses. I can also use the internet without any problems.

FC4

#The x's are actual numbers

/etc/hosts
127.0.0.1 localhost localhost.localdomain
xxx.xxx.xxx.xxx myweb myweb.com

/etc/resolv.conf
search myweb.com
nameserver 127.0.0.1
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx


Any help is appreciated

brandor
2005-09-13, 12:10 PM CDT
Is there a reason you have your box set up as a nameserver? Is it even running named?

Dielectric
2005-09-13, 12:51 PM CDT
I don't want it set up as a name server. Named is not running

brandor
2005-09-13, 12:59 PM CDT
Then remove the line from your resolv.conf file

nameserver 127.0.0.1

Dielectric
2005-09-13, 01:16 PM CDT
same results
[root@topweb ~]# ping localhost
ping: unknown host localhost

Dielectric
2005-09-13, 01:18 PM CDT
[root@topweb ~]# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.072 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.047 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.048 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.047 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.048 ms

--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.047/0.052/0.072/0.011 ms, pipe 2
[root@topweb ~]#

Dielectric
2005-09-13, 04:06 PM CDT
Seems to work ok with named on, strange?