From owner-freebsd-current@FreeBSD.ORG Mon Apr 14 17:53:00 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9B77106566B for ; Mon, 14 Apr 2008 17:53:00 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 8F08C8FC0C for ; Mon, 14 Apr 2008 17:53:00 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so732769ywt.13 for ; Mon, 14 Apr 2008 10:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=QRbB/yZVORvzdpMZoqjOYqu6F799SQBLfWxypIPaNM4=; b=pcISElHYdPowuJneoaB6KWI+tlYRp5He/RlvR3qCeErxUFerrTT7oC9fNmZRaKEUoGoY9vovgF6juK3XU22fSEG8366TrZBAE7cJOJp9AJsHNwJpJ8KGv1hz3nlpHs+bu0cWPP742+2V7tG8u5ypqY7Ml99Y0dR3XzTmBS9XAgA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=tsOrLDIDbW8Rh/+QNt5CHPjf5yqXKUnNkyPv8EcNY4eUe5Oip+xbY+lm1kVZ568Srcpeo/KBpbQ7Qb2gvdJpEHgyzqoaeV9mUcT/Z0ZSQn9/due4oYbiMH8RbHLDc5e+Q3Plkq3G0Wub7Pfmg8lyftrQmfqmh9ZK7YG6grCzRGw= Received: by 10.150.58.5 with SMTP id g5mr6421135yba.158.1208193974643; Mon, 14 Apr 2008 10:26:14 -0700 (PDT) Received: by 10.150.156.14 with HTTP; Mon, 14 Apr 2008 10:26:14 -0700 (PDT) Message-ID: <5f67a8c40804141026s27672065sb11a7f327572c0f2@mail.gmail.com> Date: Mon, 14 Apr 2008 13:26:14 -0400 From: "Zaphod Beeblebrox" To: "Eygene Ryabinkin" In-Reply-To: MIME-Version: 1.0 References: <7ExUpek150AdEdP4WR1b6w@lz+EvuNSgXKgs9kqjMxQNA> <72123.1197626129@critter.freebsd.dk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Poul-Henning Kamp , freebsd-current@freebsd.org Subject: Re: [RFC] Automated generation of /etc/resolv.conf from the rc.d script X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 17:53:01 -0000 On Fri, Dec 14, 2007 at 6:14 AM, Eygene Ryabinkin wrote: > This can be achieved with the script /etc/dhclient-exit-hooks that > will create the file with named 'forwarders' clause using values > from 'new_domain_name' and 'new_domain_name_servers' variables that > are exported to the hooks script by /sbin/dhclient-script. The > former file can be included from named.conf, so the restart or > reload of the local named instance from the exit hooks script will > do the trick. Last I tried, the OpenBSD dhclient we imported a year ago blithely ignored the dhclient-exit-hooks scripts. This is annoying because in my application, I want to set specific routes not default routes on a successful DHCP (ie: a tunneling CPE device). I had to revert to the ISC-DHCP to restore working dhclient script functionality. Note also that the source and man documentation on this subject appear to document the correct behaviour (not the behaviour of the system).