[Dnsmasq-discuss] dhcp-option 0.0.0.0 address interpretation possible bug?

Kevin Darbyshire-Bryant kevin at darbyshire-bryant.me.uk
Thu Sep 10 22:39:29 BST 2015



On 10/09/15 22:13, Simon Kelley wrote:
> On 10/09/15 10:39, Kevin Darbyshire-Bryant wrote:
>> Hi All,
>>
>> dnsmasq 2.75
>>
>> Putting 'dhcp-option=ntp-server,0.0.0.0' in dnsmasq.conf is throwing an
>> error "bad dhcp-option at line 73 of /etc/dnsmasq.conf"  Replacing it
>> with 'dhcp-option=42,0.0.0.0' allows dnsmasq to start and behave
>> properly.  I've noticed similar behaviour with 'netbios-ns' (option 44) 
>> The manpage states "special address 0.0.0.0 is taken to mean the address
>> of the machine running dnsmasq".
>>
>> dhcpv6 options don't throw an error when using text versions of dhcpv6
>> options and special addresses (::, fe80::, fd00::) so I assume they're
>> okay but haven't checked the addresses contained in dhcpv6 replies yet.
>>
>> I'm adopting my usual stance of assuming I'm an idiot and doing
>> something wrong....await education :-)
>
> You've got the syntax wrong, it should be
>
> dhcp-option=option:ntp-server,0.0.0.0
Ahhh!  The light dawns, one day I'll be able to read man pages properly
too :-)

Thanks Simon.
>
>
> Cheers,
>
> Simon.
>
>
>> Kevin
>>
>>
>>
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4816 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150910/4841190f/attachment.bin>


More information about the Dnsmasq-discuss mailing list