Date: Fri, 9 Apr 2010 15:26:46 +0200 From: Matthias Apitz <guru@unixarea.de> To: freebsd-questions@freebsd.org Subject: sendmail && /etc/resolv.conf modified by DHCP Message-ID: <20100409132646.GA16510@current.Sisis.de>
next in thread | raw e-mail | index | archive | help
Hello, At home I have my WLAN as 192.168.2.0/24. After moving to my office and rebooting there, I encounter that sendmail receives messages (via fetchmail) terrible slow. I digged into this and see that the sendmail issues wrong DNS requests as (for example): 08:51:18.753491 IP xx.xx.xx.xx.49812 > 192.168.2.1.53: 12793+ MX? ubuntu.com.Sisis.de. (37) 08:51:18.867365 IP xx.xx.xx.xx.42619 > 192.168.2.1.53: 12793+ MX? physik.uni-wuerzburg.de.Sisis.de. (50) 08:51:18.982491 IP xx.xx.xx.xx.52554 > 192.168.2.1.53: 12794+ AAAA? lexasoft.ru. (29) 08:51:19.095490 IP xx.xx.xx.xx.10093 > 192.168.2.1.53: 12794+ AAAA? des.no. (24) The reason is obvious: - the /etc/resolv.conf on shutdown at home has this DNS resolver; - in my office the system comes up and when at some point the WLAN interface associates, it gets an IP and a new /etc/resolv.conf file; Why sendmail does not honour the new /etc/resolv.conf and stays with the old DNS server IP? How this is supposed to fix? An idea would be to restart sendmail via a devd hook, but maybe there is some config values for sendmail that it always check /etc/resolv.conf for fresh? Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@unixarea.de> - w http://www.unixarea.de/ ˇYa basta! ˇTropas de OTAN, fuera de Afghanistan! There's an end of it! NATO troups out of Afghanistan! Schluss jetzt endlich! NATO raus aus Afghanistan!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100409132646.GA16510>