From owner-freebsd-questions@FreeBSD.ORG Thu Jan 15 05:34:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 097EA16A4CE for ; Thu, 15 Jan 2004 05:34:38 -0800 (PST) Received: from mail.romat.com (mail.romat.com [212.143.245.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C66F43D3F for ; Thu, 15 Jan 2004 05:34:36 -0800 (PST) (envelope-from gilad_bsd@romat.com) Received: from localhost (localhost.lan [127.0.0.1]) by mail.romat.com (Postfix) with ESMTP id 85A9FEB2E1; Thu, 15 Jan 2004 15:34:34 +0200 (IST) Received: from mail.romat.com ([192.168.1.10]) by localhost (ladon.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70228-03; Thu, 15 Jan 2004 15:34:32 +0200 (IST) Received: from romat.com (unknown [192.168.1.199]) by mail.romat.com (Postfix) with ESMTP id B0507EB2AB; Thu, 15 Jan 2004 15:34:32 +0200 (IST) Message-ID: <400695E0.4030105@romat.com> Date: Thu, 15 Jan 2004 15:30:08 +0200 From: Gilad Rom Organization: Romat Telecom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Scott Mitchell References: <20040112230938.A62891@starfire.mn.org> <20040113121623.GB57681@ei.bzerk.org> <20040114214637.GA814@tuatara.fishballoon.org> In-Reply-To: <20040114214637.GA814@tuatara.fishballoon.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: John cc: Ruben de Groot cc: freebsd-questions@freebsd.org Subject: Re: Updating DNS after DHCP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 13:34:38 -0000 Scott Mitchell wrote: > On Tue, Jan 13, 2004 at 01:16:23PM +0100, Ruben de Groot wrote: > >>On Mon, Jan 12, 2004 at 11:09:38PM -0600, John typed: >> >>>I see that some Microsoft systems send out an update to DNS with >>>the system name. I configured my DNS server to accept these updates, >>>but now that I'm running FreeBSD on a laptop - how do I do that >>>from FreeBSD? I've looked at the dhclient man pages and the named >>>man pages and the pages that they refer to and I didn't pick up >>>any hints there. >>> >>>Can anyone give me a clue? (Yeah - I'm clueless...) >> >>I believe this is done by the nsupdate(8) program. > > > You can also have your DHCP server do the updates - which makes sense, as > it's the thing handing out the addresses to your client machines. I have > this working reasonably well with isc-dhcpd, for Windows and FreeBSD > clients. > > You want to read the 'DYNAMIC DNS UPDATES' section of the dhcpd.conf(5) > manpage, and whatever docs your DNS server has on this topic. There are > plenty of examples of working configs for isc-dhcpd and bind to be found on > the web. > > HTH, > > Scott > I just set this up today... There's actually nothing to be done on the client side. The isc-dhcp server takes care of informing BIND that it has handed out a new Address. You have to add the following line to your dhcpd.conf: ddns-update-style ad-hoc; and make sure BIND is willing to take it: (from /etc/named/named.conf: zone "lan" { type master; allow-update { 192.168.1.10; }; <<-- file "s/lan"; }; (192.168.1.10 is my DHCP server, which is actually the same machine which runs BIND) after a little while, 'host -l lan' says: OREN1.lan has address 192.168.1.54 ROIE.lan has address 192.168.1.57 Sun.lan has address 192.168.1.56 zhacy.lan has address 192.168.1.58 .... And so forth... These are all dynamically-assigned addresses, I only have ladon/mail/router.lan defined in the zone file. Gilad.