sendmail && /etc/resolv.conf modified by DHCP

Matthias Apitz guru at unixarea.de
Fri Apr 9 13:26:49 UTC 2010


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 at 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!


More information about the freebsd-questions mailing list