From owner-freebsd-questions Sun Dec 9 14:22: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp6.mindspring.com (smtp6.mindspring.com [207.69.200.110]) by hub.freebsd.org (Postfix) with ESMTP id 617F737B416 for ; Sun, 9 Dec 2001 14:21:58 -0800 (PST) Received: from user-38ldn7a.dsl.mindspring.com ([209.86.220.234] helo=dad2.msfreezone.org) by smtp6.mindspring.com with esmtp (Exim 3.33 #1) id 16DCKa-0004q5-00; Sun, 09 Dec 2001 17:21:57 -0500 Message-Id: <5.1.0.14.2.20011209141859.0314c4b0@pop.mindspring.com> X-Sender: jms039149@pop.mindspring.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 09 Dec 2001 14:22:00 -0800 To: "Ciro Maietta" From: John Subject: Re: DHCP and DNS hostname resolution: A better way? Cc: In-Reply-To: <000d01c1808a$11471d80$6400a8c0@dominion.us> 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 I do not know enough about it to give you details, just a suggestion toward a path to investigate. It sounds to me as though Dynamic DNS is the solution you seek. Either pick up the DNS & BIND book, check out the handbook online, or wait for other responses that will provide more information for you, and then you shall have the foundation for your answer. - John At 12/9/01 12:18 AM, Ciro Maietta wrote: >I'm running a FreeBSD 4.2 - Release (until I can figure out how to make >decent backups before going STABLE) firewall/DHCP server. I've got named and >dhcpd running just fine and dandy (named is local only, outside access is >blocked totally in ipfw.rules) but with one snafu. Several of my clients >are laptops that I and a few other users on the network bring between our >respective home networks and the college network, all of which operate a >dhcp server (to prevent reconfiguring whenever we travel). > >According to dhcpd.leases, dhcpd can pick up the hostname of the client when >an ip is leased (the line 'client-hostname: HOST' shows up in the lease >file), but the clients can only be referenced by IP. i.e. 'ping ASGARD' >returns "Cannot resolve host: ASGARD" whereas pinging the IP works fine. So >far, I have only come across two ways that I can make this work. One is >assigning IP/Hostname depending on MAC address, and the other is using a >script (probably perl, in my case) to parse the dhcpd.leases file and >dynamically create /etc/hosts (and I have my doubts on whether that would >even actually WORK!). My question is this: Since dhcpd obviously KNOWS the >clients' hostnames, is there any way to reference the clients without >hard-coding the information in? > >Sorry if I seem masochistic, but the path of least resistance also reaps the >least satisfaction. :) > >TIA >-Ciro > >** This .sig file is currently under federal investigation on suspicion of >treason, murder, and a lack of humor. > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message