← Back to team overview

sslug-teknik team mailing list archive

Re: resolve ordrer. Kan ikke ping localhost

 

Rene Brask Soerensen wrote:
Hej

Jeg har et ret sært problem med mit loop-back (lo). Jeg kan ikke ping
localhost, men godt 127.0.0.1.

[root@lc37891 etc]# ping localhost
ping: unknown host localhost
[root@lc37891 etc]# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.068 ms

--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% loss, time 0ms
rtt min/avg/max/mdev = 0.068/0.068/0.068/0.000 ms
[root@lc37891 etc]#


min /etc/hosts :
root@lc37891 etc]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1       localhost.localdomain   localhost
[root@lc37891 etc]#

Det ser ud til at den ikke benytter /etc/hosts. Nogen der har et
forslag.   HASTER ;)

Tjek /etc/nsswitch.conf

/kristian

--




References