Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2015 15:42:45 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   sendmail && dhcp
Message-ID:  <20150226144245.GA1346@c720-r276659>

next in thread | raw e-mail | index | archive | help

Hello,

I'm using 11-CUR on my FreeBSD netbook and while moving around, I use
different network connections/interfaces: wlan0, tun6, ... depending on
the location where I boot. 

sendmail is started the normal way via /etc/rc.conf; but always finds on
startup the /etc/resolv.conf file of the last location (which ocf is not
valid anymore); the DNS is updated when the interface cames up later and
IP is assigned via DHCP; 

What would be the best way to restart (or defer the start of sendmail)
until the correct DNS is in place? For the tun interface I'm using a
devd(8) hook, but I'm looking more for a general solution.

Thanks

	matthias
-- 
Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211
La referencia de la Duma a la anexión de la RDA, en este caso al contrario con la Crimlía sin
referéndum, no solamente tiene gracia sino da en el blanco.- 
Marinos Yannikos @MarinosYannikos en un blog de RTdeutsch.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150226144245.GA1346>