[Dnsmasq-discuss] Cannot send dhcp option 12 hostname to clients

john doe johndoe65534 at mail.com
Wed May 15 15:56:20 BST 2019


On 5/15/2019 4:27 PM, Kevin Flynn wrote:
> On 5/15/19 1:25 AM, Geert Stappers wrote:
>> Share that dhcp-host lines with your audience here.
>> Make it possible that they can verify how far they match
>>>> "--dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore"
>>>>
>
> From my /etc/dnsmasq/dhcp-lana.hosts file, in which all lines are
> comments beginning with #, whitespace, or lines which resemble the
> following:
>
> | xx:xx:xx:xx:xx:xx,192.168.100.101,phone1,12h
> | xx:xx:xx:xx:xx:xx,192.168.100.102,phone2,12h
> ... etc.
>

From dnsmasq.conf:

# Always give the host with Ethernet address 11:22:33:44:55:66
# the name fred and IP address 192.168.0.60 and lease time 45 minutes
#dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m

So 'MAC,hostname,IP,...' and not 'MAC,IP,hostname,...'.

--
John Doe



More information about the Dnsmasq-discuss mailing list