Re: Host's IP address can't be found
On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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. You are getting online ok? 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-qy-WE = [EMAIL PROTECTED] U=brownh P=local S=448 2007-04-28 06:55:20 1HhkaF-qy-WE no IP address found for host [EMAIL PROTECTED] 2007-04-28 06:55:20 1HhkaF-qy-WE == [EMAIL PROTECTED] R=smarthost defer (-1): lookup of host [EMAIL PROTECTED] failed in smarthost router [snip unnecessary, INMHO, configs] Have a look at /etc/email-addresses[1], where you can map local addresses to your isp address. Is exim configured to use your smtp server? [1] Not sure if /etc/email-addresses is the correct name -- could someone check this. -- Chris. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Host's IP address can't be found
[EMAIL PROTECTED] (Chris Bannister) wrote: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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. You are getting online ok? 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-qy-WE = [EMAIL PROTECTED] U=brownh P=local S=448 2007-04-28 06:55:20 1HhkaF-qy-WE no IP address found for host [EMAIL PROTECTED] 2007-04-28 06:55:20 1HhkaF-qy-WE == [EMAIL PROTECTED] R=smarthost defer (-1): lookup of host [EMAIL PROTECTED] failed in smarthost router [snip unnecessary, INMHO, configs] Have a look at /etc/email-addresses[1], where you can map local addresses to your isp address. Is exim configured to use your smtp server? [1] Not sure if /etc/email-addresses is the correct name -- could someone check this. Do you mean /etc/aliases or is this an exim file? (I run postfix) Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: PGP signature
Re: Host's IP address can't be found
On Sun, 13 May 2007 17:07:07 +0300 Andrei Popescu [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Chris Bannister) wrote: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: [snip] Have a look at /etc/email-addresses[1], where you can map local addresses to your isp address. Is exim configured to use your smtp server? [1] Not sure if /etc/email-addresses is the correct name -- could someone check this. Do you mean /etc/aliases or is this an exim file? (I run postfix) It's the correct name, it's an exim file. Regards, Andrei Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Host's IP address can't be found
On Sun, 29 Apr 2007 08:03:21 -0500 Kent West [EMAIL PROTECTED] wrote: [snip] Your DHCP server will assign the correct address. If you want the box to get the same address every time, you'll need to configure the DHCP server to give a reserved address to this box based on this box's MAC layer (hardware) address. I do this on my LAN. Just to clarify, this isn't something you can configure on the Debian client system; the DHCP server has to be instructed to reserve a specific address for a specific MAC address. How to do this will depend on the specific DHCP implementation. On my Netgear home router, for example, there's a section somewhere (I'm not on my home LAN now) in the web interface that allows one to set up a table of MAC addresses associated with reserved IP addresses. [snip] Kent West Westing Peacefully - http://kentwest.blogspot.com Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Host's IP address can't be found
On Sat, 2007-04-28 at 19:25 -0400, Douglas Allan Tutty wrote: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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. /etc/hosts: 127.0.0.1 localhost 192.168.1.1 teufel.localdomain teufel [snip standard ipv6 entries] $ 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 DestinationGatewayGenmaskFlags MSS Window irtt Iface 192.168.111.0 0.0.0.0255.255.255.0 U 0 0 0 eth1 0.0.0.0192.168.111.1 0.0.0.0UG 0 0 0 eth1 What host is this? ^^^ ^ This address is the default address of my hardware firewall, which is acting as gateway for my one-host LAN. 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 Why both dhcp _and_ static entries? Dunno ;-(. Years ago, when I set up the firewall, I needed to use dhcp in the interface, and for some reason I carried the pre-firewall addresses over. If I drop them, how do I define IP addresses on my local LAN should I add other local hosts to it? In otherwords, how do I define the 192.168.1.1 address for the local host if I remove these static addresses? # ifconfig eth1 Link encap:Ethernet HWaddr 00:A0:C9:B4:D5:A8 inet addr:192.168.111.2 Bcast:192.168.111.255 Mask:255.255.255.0 inet6 addr: fe80::2a0:c9ff:feb4:d5a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13510 errors:0 dropped:0 overruns:0 frame:0 TX packets:8205 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:18629272 (17.7 MiB) TX bytes:601099 (587.0 KiB) loLink encap:Local Loopback [snip] To summarize what I see: ... interfaces configures eth1 using dhcp (the other options are ignored). If you wish to use static, change dhcp to static. Dhcp is assigning this interface 192.168.111.2 The routing table is routing network 192.168.111.0 to a gateway of 192.168.111.1 (I'm assuming that this is the ip of your firewall box). yes Your hosts file contains your hostname at 192.168.1.1 and I think this is the crux of the problem. Didn't help. Changed to 192.168.111.2 in /etc/hosts and removed the static addresses in /etc/network/interfaces. Messages out still generate the error: No IP address found for host [EMAIL PROTECTED] Incidentally, shouldn't this be in the form of an e-mail address rather than, say, just my domain name? I've never used a hardware firewall (I've always been on dial-up) nor dhcp. I don't know how to have your NIC setup with dhcp but have an entry for that NIC in /etc/hosts. A lot of people on this list use dhcp so hopefully someone jumps in and tells you how to use it consistantly. Barring that, I would suggest: fix /etc/hosts so that the 192.168.1.1 is changed to 192.168.111.2. fix interfaces to take out the extraneouse options. Good luck, Doug. Thanks Doug. Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Host's IP address can't be found
On 4/29/07, Gloria Brown [EMAIL PROTECTED] wrote: On Sat, 2007-04-28 at 19:25 -0400, Douglas Allan Tutty wrote: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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. 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 Why both dhcp _and_ static entries? Dunno ;-(. Years ago, when I set up the firewall, I needed to use dhcp in the interface, and for some reason I carried the pre-firewall addresses over. If I drop them, how do I define IP addresses on my local LAN should I add other local hosts to it? In otherwords, how do I define the 192.168.1.1 address for the local host if I remove these static addresses? Your DHCP server will assign the correct address. If you want the box to get the same address every time, you'll need to configure the DHCP server to give a reserved address to this box based on this box's MAC layer (hardware) address. # ifconfig eth1 Link encap:Ethernet HWaddr 00:A0:C9:B4:D5:A8 inet addr:192.168.111.2 Bcast:192.168.111.255 Mask:255.255.255.0 inet6 addr: fe80::2a0:c9ff:feb4:d5a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13510 errors:0 dropped:0 overruns:0 frame:0 TX packets:8205 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:18629272 (17.7 MiB) TX bytes:601099 (587.0 KiB) loLink encap:Local Loopback [snip] Your hosts file contains your hostname at 192.168.1.1 and I think this is the crux of the problem. Didn't help. Changed to 192.168.111.2 in /etc/hosts and removed the static addresses in /etc/network/interfaces. Messages out still generate the error: No IP address found for host [EMAIL PROTECTED] Did you then restart networking (/etc/init.d/networking restart)? Does ifconfig still report the same as above? Can you ping external devices successfully? If so, then I suspect (as you do) that something's amiss in your mail setup rather than your networking setup. -- Kent West Westing Peacefully - http://kentwest.blogspot.com
Re: Host's IP address can't be found
On Sun, Apr 29, 2007 at 08:03:21AM -0500, Kent West wrote: On 4/29/07, Gloria Brown [EMAIL PROTECTED] On Sat, 2007-04-28 at 19:25 -0400, Douglas Allan Tutty wrote: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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. In /etc/network/interfaces: 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 Why both dhcp _and_ static entries? Dunno ;-(. Years ago, when I set up the firewall, I needed to use dhcp in the interface, and for some reason I carried the pre-firewall addresses over. If I drop them, how do I define IP addresses on my local LAN should I add other local hosts to it? In otherwords, how do I define the 192.168.1.1 address for the local host if I remove these static addresses? Shouldn't the dhcp server on the firewall box do that? Since I've never used dhcp or a hardware firewall box, I'm out of ideas. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Host's IP address can't be found
Not trimming on purpose, see below: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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-qy-WE = [EMAIL PROTECTED] U=brownh P=local S=448 2007-04-28 06:55:20 1HhkaF-qy-WE no IP address found for host [EMAIL PROTECTED] 2007-04-28 06:55:20 1HhkaF-qy-WE == [EMAIL PROTECTED] R=smarthost defer (-1): lookup of host [EMAIL PROTECTED] 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 DestinationGatewayGenmaskFlags MSS Window irtt Iface 192.168.111.0 0.0.0.0255.255.255.0 U 0 0 0 eth1 0.0.0.0192.168.111.1 0.0.0.0UG 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 What does ifconfig show? Tack the output here and don't trim so we see everything on one page. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Host's IP address can't be found
On Sat, 2007-04-28 at 15:37 -0400, Douglas Allan Tutty wrote: Not trimming on purpose, see below: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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-qy-WE = [EMAIL PROTECTED] U=brownh P=local S=448 2007-04-28 06:55:20 1HhkaF-qy-WE no IP address found for host [EMAIL PROTECTED] 2007-04-28 06:55:20 1HhkaF-qy-WE == [EMAIL PROTECTED] R=smarthost defer (-1): lookup of host [EMAIL PROTECTED] 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 DestinationGatewayGenmaskFlags MSS Window irtt Iface 192.168.111.0 0.0.0.0255.255.255.0 U 0 0 0 eth1 0.0.0.0192.168.111.1 0.0.0.0UG 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 What does ifconfig show? Tack the output here and don't trim so we see everything on one page. Doug. # ifconfig eth1 Link encap:Ethernet HWaddr 00:A0:C9:B4:D5:A8 inet addr:192.168.111.2 Bcast:192.168.111.255 Mask:255.255.255.0 inet6 addr: fe80::2a0:c9ff:feb4:d5a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13510 errors:0 dropped:0 overruns:0 frame:0 TX packets:8205 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:18629272 (17.7 MiB) TX bytes:601099 (587.0 KiB) loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1766 errors:0 dropped:0 overruns:0 frame:0 TX packets:1766 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:622964 (608.3 KiB) TX bytes:622964 (608.3 KiB) Thanks for the help, Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Host's IP address can't be found
On Sat, Apr 28, 2007 at 03:48:39PM -0400, Gloria Brown wrote: On Sat, 2007-04-28 at 15:37 -0400, Douglas Allan Tutty wrote: Not trimming on purpose, see below: On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote: 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. [snip examples of the network not working] /etc/hosts: 127.0.0.1 localhost 192.168.1.1 teufel.localdomain teufel [snip standard ipv6 entries] $ 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 DestinationGatewayGenmaskFlags MSS Window irtt Iface 192.168.111.0 0.0.0.0255.255.255.0 U 0 0 0 eth1 0.0.0.0192.168.111.1 0.0.0.0UG 0 0 0 eth1 What host is this? ^^^ ^ 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 Why both dhcp _and_ static entries? In /etc/nsswitch.conf, I have: ... hosts: files dns networks: files # ifconfig eth1 Link encap:Ethernet HWaddr 00:A0:C9:B4:D5:A8 inet addr:192.168.111.2 Bcast:192.168.111.255 Mask:255.255.255.0 inet6 addr: fe80::2a0:c9ff:feb4:d5a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13510 errors:0 dropped:0 overruns:0 frame:0 TX packets:8205 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:18629272 (17.7 MiB) TX bytes:601099 (587.0 KiB) loLink encap:Local Loopback [snip] To summarize what I see: Your nic gets assigned as eth1 by the kernel. If this changes, see man interfaces; there's a get-mac-address.sh whereby you can set up interfaces by mac address. interfaces configures eth1 using dhcp (the other options are ignored). If you wish to use static, change dhcp to static. Dhcp is assigning this interface 192.168.111.2 The routing table is routing network 192.168.111.0 to a gateway of 192.168.111.1 (I'm assuming that this is the ip of your firewall box). Your hosts file contains your hostname at 192.168.1.1 and I think this is the crux of the problem. I've never used a hardware firewall (I've always been on dial-up) nor dhcp. I don't know how to have your NIC setup with dhcp but have an entry for that NIC in /etc/hosts. A lot of people on this list use dhcp so hopefully someone jumps in and tells you how to use it consistantly. Barring that, I would suggest: fix /etc/hosts so that the 192.168.1.1 is changed to 192.168.111.2. fix interfaces to take out the extraneouse options. Good luck, Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]