[Dnsmasq-discuss] dhcp-fqdn bug

Simon Kelley simon at thekelleys.org.uk
Fri Mar 31 22:18:21 UTC 2023



On 30/03/2023 22:00, 0zl wrote:
> Greetings,
> 
> I believe this might be a bug in dnsmasq. When using the shorthand 
> `domain=mydomain.com,local` and `dhcp-fqdn`, dnsmasq fails with:
> 
> `there must be a default domain when --dhcp-fqdn is set`
> 
> I'm not sure if this is intended behavior or not, but from what I could 
> gather this shouldn't happen.
> 

You're possibly a victim of dnsmasq's over-complex configuration syntax.

The error is `there must be a default domain when --dhcp-fqdn is set` 
which is true. By default domain it means a domain which doesn't apply 
only to hosts with an address in a particular address range.

The problem is that -domain=mydomain.com,local is being parsed by the 
dnsmasq code as being a domain which only applies to hosts which have an 
address in the same range as a network interface called "local". That's 
not a default domain, hence the problem.

I doubt that's what you intended your domain option to mean, but it's 
not clear what you are trying to do here: the "local" keyword only makes 
sense in a domain declaration which includes an address range.

If you let us know what you are behaviour you want, we can tell you how 
to configure dnsmasq to get it.


cheers,

Simon.




More information about the Dnsmasq-discuss mailing list