[Dnsmasq-discuss] DHCP mangling IP address, host name

duane-dnsmasq-discuss at evenson.ca duane-dnsmasq-discuss at evenson.ca
Fri Dec 18 16:55:27 GMT 2020


On 2020-12-18 2:51 a.m., Geert Stappers wrote:
> On Fri, Dec 18, 2020 at 09:58:35AM +0100, Carsten Spieß wrote:
>> Hello,
>>
>>> I'm getting a confusing result with my DHCP server part.
>>> dhcp-host=00:25:f6:03:2a:5d,iris,192.168.0.10/24
>> Probably hostname and ipaddr needs to be exchanged.
>> See 'man dnsmasq' :
>>    --dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]
> Good catch
>
> so:
> dhcp-host=00:25:f6:03:2a:5d,192.168.0.10,iris
>
>
> Regards
> Geert Stappers

According to comments in the example config file 
"/usr/share/doc/dnsmasq/examples/dnsmasq.conf.example":

# Supply parameters for specified hosts using DHCP. There are lots
# of valid alternatives, so we will give examples of each. Note that
# IP addresses DO NOT have to be in the range given above, they just
# need to be on the same network. The order of the parameters in these
# do not matter, it's permissible to give name, address and MAC in any
# order.

So good guess, but not it. :)

The problem was including a netmask on the line.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: duane.vcf
Type: text/x-vcard
Size: 4 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20201218/744f96d2/attachment.vcf>


More information about the Dnsmasq-discuss mailing list