From owner-freebsd-questions@FreeBSD.ORG Sun Sep 20 21:04:38 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EE16106566C for ; Sun, 20 Sep 2009 21:04:38 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id DEEDA8FC22 for ; Sun, 20 Sep 2009 21:04:37 +0000 (UTC) Received: by an-out-0708.google.com with SMTP id d14so1073341and.13 for ; Sun, 20 Sep 2009 14:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=RZENLi1FTcF0DQn+Njc/FuvF+ir0Rbcm10oyl0a+u64=; b=UTO5916DSAhnDOJDi4X9yTYxARVaI1VLzQzOaoNaAP3iatn8qKRkTX85SS1mh/vprJ HWdBw/n+seE/IVWoD5H77NpsYfNsCPluD3svZZYwAcsDc2IZqoEk0ERpGJQnTDZ2jh16 GIPUv2FAd3O/NtOfuEDZt9UZnTuSVeyF+27m4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=oVv2ypNhG725aDV+5B8evBDWgWYSqbpTX9erk4/OxxCHCrmBtEYgyiSo4V90Iuc7Y3 +8bisPfeg8qTJq7wY4LVGvbOxdmoWkGV0uDzHuzhN13kv0/QCjNJbEQIyniO1CUzKCGX mA7S0LbHE/mCugECODKsuYUJJZEvTfKvsXw3o= MIME-Version: 1.0 Received: by 10.101.126.11 with SMTP id d11mr3643919ann.29.1253479154260; Sun, 20 Sep 2009 13:39:14 -0700 (PDT) In-Reply-To: <20090920191928.GA1537@teddy.fas.com> References: <20090920191928.GA1537@teddy.fas.com> Date: Sun, 20 Sep 2009 16:39:14 -0400 Message-ID: <25ff90d60909201339m14be84a2u92394174cceb108a@mail.gmail.com> From: David Horn To: Free BSD Questions list Content-Type: text/plain; charset=ISO-8859-1 Cc: stan Subject: Re: DHCP client questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2009 21:04:38 -0000 On Sun, Sep 20, 2009 at 3:19 PM, stan wrote: > We have been bought out, and the new powers that be, are changing things. > They have decreed that there shall be no static entries in their DNS > servers. They are using $MS DHCP/DNS servers. I have a corporate supported > Win XP laptop, which I can plug in at various places in the network. It > gets different IP addresses, based upon where it physically is, but always > comes up with the same name. The question is whether by the "same name" you are referring to a dns lookup, a wins lookup, or a nbns broadcast query, or all of the above ;) > > I have several machines (such as a mailserver) which _MUST_ have fixed > names. I have played around with /etc/dhcllient.conf, but not managed to > get this working. I can get IP addresses, and various things such as > default routers, and DNS servers, but I have not managed to get the > suggested name put in their DNS. try running: tcpdump -r filename.pcap -vvv port bootpc in order to get a nice decode of your dhcp session. This will contain by the client discover/request/ack, and the server offer packets. > > I have captured packet traces with wireshark from the laptop, and from the > FreebSD client, and I am putting these up at http://beachcave.net/pdumps. > > I would really appreciate it if someone more familiar with DHCP that I > could take a look at theses. Your windows capture clearly shows a dhcp option 12 with the short name, and dhcp option 81 with FQDN Hostname Option 12, length 10: "CHSLSBROWN" FQDN Option 81, length 31: "CHSLSBROWN.kapstonepaper.com" Vendor-Class Option 60, length 8: "MSFT 5.0" Parameter-Request Option 55, length 11: Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery Static-Route, Classless-Static-Route-Microsoft, Vendor-Option END Option 255, length 0 Your freebsd captures show dhcp option 12 with the FQDN. You need to try using option 12 and option 81 just like in windows land. You may even need to put in the Vendor-Class and/or others to duplicate the windows request, but try one item at a time. Try adding these to your dhclient.conf as needed. Take the time to look at the man page for dhclient.conf, and dhcp-options, and also take a look at the full defined option numbers here: http://www.iana.org/assignments/bootp-dhcp-parameters/ Good Luck. --Dave H