Page 1 of 1

Server changed IP dhcp to static - no extern mail traffic

Posted: Mon Sep 24, 2007 12:14 pm
by Quencher
Hi,

we had a running system,but we changed the ip address from dhcp to static. :(
We changed the /etc/interfaces file and the /etc/resolvconf/resolv.conf.d/base and entered here the nameserver (local router ip).

After that it wasn't possible to send mails externally. We use sendmail with smarthost.
Also we have a log alert that host name lookup failure.

But it is possible to use the command nslookup an you get the right result.

Any ideas?


greetz

Posted: Tue Oct 02, 2007 8:17 pm
by LHD-Tech
what about the /etc/sysconfig/network-scrips/ifcfg-eth0 file?

What returns when you enter

Code: Select all

ifconfig -a

Posted: Tue Oct 02, 2007 10:27 pm
by grahamk
shouldnt you be changing /etc/resolv.conf ??

You're post confuses me a little, but I do (generally) understand basic linux networking.

try typing this:

host www.google.com

That should try and resolve www.google.com to an IP address.

Also, check the contents of /etc/resolv.conf and make sure the entry points to a valid nameserver ip address (probably your local router as you mentioned before.)

(eg. nameserver 192.168.0.1)

Hope this might help.