[Dnsmasq-discuss] Dnsmasq is not sending the hostname to the client.

james meyer james.meyer at operamail.com
Mon Jul 27 02:34:22 BST 2009


On Sunday 26 July 2009, Simon Kelley wrote:
> james meyer wrote:
> > Hello,
> > I am attempting to make dnsmasq send hostnames to a dhcp client when it 
makes 
> > a request.   While working the Roy of dhcpcd fame we discovered that 
dnsmasq 
> > doesn't send the hostname  when the dhcp client sends a hostname to the 
> > server.  Howerver the the client doesn't send a hostname then dnsmasq will 
> > respond with the correct hostname as defined in the dnsmasq.conf.
> > 
> > I have run into a situation where I always want to know the hostname from 
> > dnsmasq regardless of what the client is going to do with it.  Is there a 
> > setting within the dnsmasq.conf file to enable this ability?  
> > 
> > -james

> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> > 
> I think the dhcp-ignore-names does what you want.
> 
> 
> HTH
> 
> Simon.
> 
> pid-file=/var/run/dnsmasq.pid
Simon,
I tried adding the dhcp-ignore-names  option as you suggested, but it didn't 
make a difference.
Running dhcpcd -Td eth0 doesn't print any suggested hostnames from dnsmasq, 
unless I tell the client to not send a hostname.

Is it desired behaviour to only send the client a hostname under certain 
conditions?  It would really help me out if it always sent it, and then let 
the client decide what to do with it.

-james

dnsmasq.conf:

interface=br0
resolv-file=/etc/resolv.dnsmasq
addn-hosts=/etc/hosts.dnsmasq
expand-hosts
min-port=4096
dhcp-range=192.168.1.101,192.168.1.250,255.255.255.0,10080m
dhcp-option=3,192.168.1.1
dhcp-lease-max=255
dhcp-authoritative
dhcp-host=00:E0:81:B3:12:FA,192.168.1.5,10080m
dhcp-host=00:1F:C6:09:BF:2F,192.168.1.101,10080m
dhcp-host=00:14:FD:12:50:54,192.168.1.114,10080m
local=/lan/
domain=lan
dhcp-option=6,192.168.1.1
dhcp-ignore-names=00:0C:29:CF:02:FC
dhcp-host=00:0C:29:CF:02:FC,192.168.1.206,fred






More information about the Dnsmasq-discuss mailing list