From owner-freebsd-questions@FreeBSD.ORG Mon May 10 19:11:22 2010 Return-Path: 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 EE8BD106567D for ; Mon, 10 May 2010 19:11:21 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (imap.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7CA3D8FC23 for ; Mon, 10 May 2010 19:11:20 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o4AJBFLm034177 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 10 May 2010 20:11:15 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BE85A53.8070104@infracaninophile.co.uk> Date: Mon, 10 May 2010 20:11:15 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.96 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: microsoft windows help needed (DHCP server problems) 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: Mon, 10 May 2010 19:11:22 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/05/2010 19:41:10, Aleksandr Miroslav wrote: > I'm running FreeBSD 8.0-RELEASE on my work PC. > > My organization runs largely Windows desktops with a sizable chunk of > Mac OS X machines. > > Whenever a Windows/Mac connects to the Windows-based DHCP server, it > not only does the normal DHCP functions (i.e. gets an IP), it also > sets the hostname on the Windows server for that IP. > > i.e. when windows.example.org connects to dhcpserver.example.org, the > dhcp server assigns to it 192.168.1.1 AND sets the PTR record for > 192.168.1.1 to be windows.example.org. > > But for my FreeBSD box seems to only do the first part, i.e. get an IP > address. The second part does not seem to be done. > > Is this some Windows/Mac overloading of the DHCP protocol that I > cannot do, or is there some DHCP bit I need to flip to make this > happen? It's just a difference in behaviour between Windows and the traditional Unixy way. MacOS X seems to have moved towards the Windows-y way of doing things. What's happening is that your Unix machine is getting its IP number, default route etc. from the DHCP server, but it isn't sending information back to the DHCP server -- such as what its hostname is. You can use a 'send { }' clause in dhclient.conf to change that -- see dhclient.conf(5) and dhcp-options(5). Usually it's the DHCP server that inserts the hostname / IP pair into the DNS once it receives the hostname back from each client. Something like: interface em0 { send host-name "myhost" ; send domain-name "example.org" ; } should do the trick (Untested, use appropriate common sense, yadda yadda) Hmmm.... actually, perhaps I've misread your intent: you can configure the DHCP server to override the clients idea of what its hostname is -- generally the DHCP server will tell the client to use the hostname corresponding to the IP as already set up in the DNS or in /etc/hosts on the DHCP server. Or else you can have the clients voluntarily request a name from the DHCP server. To make this happen on a Unix box, you just need to request the host name using dhclient.conf(8). Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvoWlIACgkQ8Mjk52CukIwwYQCfYHBKWmt5nc3YdXzs/AZwgg2Z HuIAoIeWdIKkbtCwcN1LOolxH7SbeNqv =5aw6 -----END PGP SIGNATURE-----