[Dnsmasq-discuss] Is empty domain OK?

William Edwards wedwards at cyberfusion.nl
Tue Oct 18 07:11:28 UTC 2022


Grant Edwards schreef op 2022-10-18 03:03:
> All of the examples I see for setting up dnsmasq on networks without a
> "real" domain always say to choose a "fake" local domain (e.g. .lan,
> ..home.arpa, .local, etc.). Then you also configure dnsmask to treat
> that domain as local so that requests for that domain are never
> forwarded.
> 
> Why?
> 
> Are you not allowed to have have an empty domain so that "plain"
> hostnames are satisfied locall (e.g. from /etc/hosts and the DHCP
> leases) and only requests with a domain are forwarded to the external
> server?

DNS supports this. I don't know if dnsmasq does.

Regardless of whether it's technically possible: why would you want 
this? This will cause issues. Many hostname validators require the 
presence of a dot, for example. Would a search domain work for you?

> 
> --
> Grant
> 
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

-- 
With kind regards,

William Edwards




More information about the Dnsmasq-discuss mailing list