From owner-freebsd-questions Mon Aug 6 9: 7:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 8BB3D37B403 for ; Mon, 6 Aug 2001 09:07:29 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f76G7HW62516; Mon, 6 Aug 2001 11:07:17 -0500 (CDT) (envelope-from nick@rogness.net) Date: Mon, 6 Aug 2001 11:07:16 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Joel Dinel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DHCP and hosts In-Reply-To: <20010803074656.B74135@dinjo.touchtunes.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 3 Aug 2001, Joel Dinel wrote: > > Is there any way to have FreeBSD 4.X automagically update /etc/hosts > when using a cable modem with DHCP? For example, I have > box1.mydomain.com that gets its IP via DHCP. If I 'ping box1', I get > 'ping: cannot resolve box1: Unknown host'. Surely enough, there's no > entry in /etc/hosts for 'box1'. This is on a home PC that reboots > quite often, and the IP lease is quite short, resulting in a lot of IP > changes. Run a local nameserver, have the DHCP client dynamically update the local nameserver. I don't know if the current dhclient has the ability to update a DNS server or not...so you may have to run a different DHCP client. Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message