From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 15:39:00 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 841CE1DB for ; Thu, 26 Feb 2015 15:39:00 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3E042814 for ; Thu, 26 Feb 2015 15:38:59 +0000 (UTC) Received: from [82.113.106.141] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1YQzeI-0003Gi-Ue for freebsd-questions@freebsd.org; Thu, 26 Feb 2015 15:42:47 +0100 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t1QEgjIK001364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 26 Feb 2015 15:42:45 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t1QEgjmn001363 for freebsd-questions@freebsd.org; Thu, 26 Feb 2015 15:42:45 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 26 Feb 2015 15:42:45 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: sendmail && dhcp Message-ID: <20150226144245.GA1346@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.106.141 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 15:39:00 -0000 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.