From owner-freebsd-questions@FreeBSD.ORG Wed Jan 10 20:09:39 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2783D16A40F for ; Wed, 10 Jan 2007 20:09:39 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id 0521313C448 for ; Wed, 10 Jan 2007 20:09:36 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 4810 invoked from network); 10 Jan 2007 20:09:36 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Jan 2007 20:09:36 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id BAD402842F; Wed, 10 Jan 2007 15:09:34 -0500 (EST) To: George.Vanev@gmail.com References: <6f4f57f60701090556v35b55b2cn9bbcd363c588b002@mail.gmail.com> <45A3AD0A.1090600@vidican.com> <6f4f57f60701092249p65cc4a2bn40af47d6096f5918@mail.gmail.com> From: Lowell Gilbert Date: Wed, 10 Jan 2007 15:09:34 -0500 In-Reply-To: <6f4f57f60701092249p65cc4a2bn40af47d6096f5918@mail.gmail.com> (George Vanev's message of "Wed, 10 Jan 2007 08:49:34 +0200") Message-ID: <44y7oay77l.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: Automatically get nameservers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 20:09:39 -0000 "George Vanev" writes: > I installed isc-dhcpd and it is working fine. > But I don't want to hardcode the nameservers in the dhcpd.conf, > because my ISP is changing them sometimes. > It would be perfect if there is a way dhcpd to read the nameservers > from /etc/resolv.conf Not exactly, but you can have the dhclient rewrite the dhcpd.conf when it gets new nameservers. I used to do this; I ran it from dhclient-exit-hooks, and it was a simple sed(1) command. For a long time, I've been running my own local caching nameserver, and directing the DHCP clients to that, but I could dig out my old script if you have trouble with it. Although I would suggest you also consider setting up your own local caching nameserver; the caching behaviour can be a noticeable speed boost.