← Back to team overview

sslug-teknik team mailing list archive

Re: sendmail og unqualified host name

 

On Sun, Feb 20, 2000 at 16:01:42 +0100, Martin Christensen wrote:

> I /etc/hosts er eth0 sat til at hedde localhost.localdomain med
> localhost som alias.

her er fejlen. localhost skal være 127.0.0.1 , f.eks.:.

hosts:

127.0.0.1		localhost.local localhost 
192.168.1.1   	 	tux.hjemme tux

Du må ikke ændre localhost, det er ligesom en standard at
127.0.0.1 som er local loopback interface hedder localhost. (Også i win9x)

"route -n" f.eks. :

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

og "ifconfig":

eth0      Link encap:Ethernet  HWaddr 00:20:18:2F:F1:E3  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8021 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9923 errors:0 dropped:0 overruns:0 carrier:0
          collisions:2 txqueuelen:100 
          Interrupt:9 Base address:0xd800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:22246 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 


-- 
mvh Frank Damgaard  | http://home3.inet.tele.dk/frda/



References