From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 19:59:14 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 609A827A for ; Thu, 26 Feb 2015 19:59:14 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 36CFECB6 for ; Thu, 26 Feb 2015 19:59:13 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 771DC33C1D; Thu, 26 Feb 2015 14:59:02 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id BFB3539816; Thu, 26 Feb 2015 14:59:01 -0500 (EST) From: Lowell Gilbert To: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: sendmail && dhcp References: <20150226144245.GA1346@c720-r276659> <44bnkgsmcl.fsf@lowell-desk.lan> <20150226194012.GA2695@c720-r276659> Reply-To: freebsd-questions@freebsd.org Date: Thu, 26 Feb 2015 14:59:00 -0500 In-Reply-To: <20150226194012.GA2695@c720-r276659> (Matthias Apitz's message of "Thu, 26 Feb 2015 20:40:12 +0100") Message-ID: <4461aoe96j.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 19:59:14 -0000 Matthias Apitz writes: > El d=EDa Thursday, February 26, 2015 a las 10:50:50AM -0500, Lowell Gilbe= rt escribi=F3: > >> Matthias Apitz writes: >>=20 >> > 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. >>=20 >> dhclient-script(8) is one way. > > Thanks for the hint. I've played around with the hooks script > /etc/dhclient-exit-hooks; but this is not invoked when PPP brings up the > interface tun(4), routing etc. because this is not done by dhclient(8), > but directly by the pppd(8) and its hooks. Unless you're running DHCP over the PPP link, which isn't quite as silly as it sounds. Another option would be to run your own resolver daemon on the machine. That moves your configuration problem from sendmail to the resolver (unless you go straight to the root for your lookups), but at least it moves the DNS problem to DNS. Are you sure you *need* sendmail running by default? Most laptops don't.=20