[Gllug] dhcp & client-hostname
Magnus Nilsson
magnusn at advfn.com
Fri Sep 20 09:02:32 UTC 2002
On Fri, 2002-09-20 at 09:27, Jonathan Dye wrote:
> Hi,
>
> At home I have a box that acts as a dhcp server to my home network. It also
> runs dnsmasq as a dna server which reads the dhcpd.leases file and looks for
> client-hostname (or an alternative which I forget) entries for local
> machines. This works fine with my windows based machiens as they send this
> info down with their dhcp requests but my debian 3 box doesn't do the same
> so I can't resolve it via dns.
>
> I believe it uses dhclient to get a lease so I had a look at the man page
> and I thought that putting
> send client-hostname "<hostname>"
> in the /etc/dhclient.conf file would make it send the relevant data when
> querying the server but it doesn't appear to. Can anyone help me out with
> this as I like the way that dnsmasq works and don't want to go back to
> static IPs.
>
Try putting:
send host-name "<hostname>"
in there instead. 'man dhcp-options' and 'man dhclient.conf' explains
what options you can use.
I've locked the DHCP to allocate IP's based on the MAC of the requesting
machine...
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list