[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Host's IP address can't be found



I installed Etch on a stand-alone workstation which is the sole host on 
a local network and has Internet access through a hardware firewall. 

I have a MB ethernet chip, but am using a NIC card. Before the card was
eth0, but with installation of Etch on a new disk, it apparently changed
to eth1.

I can't mail out with rmail or Wanderlust because the host's IP address
can't be found:

In exim4/mainlog when I use rmail:

  2007-04-28 06:55:20 1HhkaF-0000qy-WE <= brownh@teufel.hartford-hwp.com
        U=brownh P=local S=448
  2007-04-28 06:55:20 1HhkaF-0000qy-WE no IP address found for host
        brownh@hartford-hwp.com
  2007-04-28 06:55:20 1HhkaF-0000qy-WE == brownh@teufel.hartford-hwp.com
        R=smarthost defer (-1): lookup of host "brownh@hartford-hwp.com"
        failed in smarthost router

/etc/hosts:

127.0.0.1       localhost
192.168.1.1     teufel.localdomain teufel

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

$ host hartford-hwp.com
hartford-hwp.com has address 64.227.154.66
hartford-hwp.com mail is handled by 5 inbound.registeredsite.com.

$ netstat -rn teufel
Kernel IP routing table
Destination    Gateway        Genmask        Flags  MSS Window  irtt
Iface
192.168.111.0  0.0.0.0        255.255.255.0  U       0 0          0 eth1
0.0.0.0        192.168.111.1  0.0.0.0        UG      0 0          0 eth1

In /etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth1
allow-hotplug eth1
iface eth1 inet dhcp
        address 192.168.1.1
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255

In /etc/nsswitch.conf, I have:

  ...
  hosts:          files dns
  networks:       files
  ...

Haines Brown




Reply to: