0
I have a dnsmasq server running on my router, which handles both dhcp and dns (caching, forwarding). I configured my local domain: domain=example.com
.
I can resolve local dhcp hostnames:
dig +short dhcp1.example.com
10.0.0.53
Now I have a public dns entry on public.example.com which doesn't get resolved by dnsmasq because it was not served by dhcp and is not in /etc/hosts
dig +short public.example.com
NXDOMAIN
Now my question: Is it possible to tell dnsmasq to ask an upstream dns server for any host that was not served by dhcp?
As a workaround I could add public.example.com to the /etc/hosts file. But then I would have to do it manually for every public dns entry on that domain.
I read through the manpage and noticed the following portion under --domain
:
If the domain is given as "#" then the domain is read from the first "search" directive in /etc/resolv.conf (or equivalent).
So I tried to add server=/example.com/#
to the config, but it didn't have the desired effect.
Thank you for your answers :-)