Dnsmasq - dns for domain

,

NethServer Version: NethServer release 7.6.1810 (final)

Hi i have problem with dnsmasq

When i setup dns. dnsmasq cache bad - empty request from server which is faster.
I find solution for this but is not permanent because is regenerated every time when i change dnsmasq settings in panel
And i have question where and how i can add one line look like :

server=/www.google.com/ISP DNS IP

Did you setup working nameservers in “Network/DNS Servers”?
Maybe it’s a client problem, did you try to flush the local DNS cache?

To make the changes permanent, create /etc/e-smith/templates-custom/etc/dnsmasq.conf/91customserver with your server directive.

Then just run

signal-event nethserver-dnsmasq-update

to apply the changes. The server directive should now be the last line in /etc/dnsmasq.conf

You can find more information about the template system in the devel docs.

1 Like

This is not client problem i check. And dig aprove this.
Client station ask directly nethserver which cache result.

End if i edit manualy dnmasq.conf all worked fine this exclude client problem

This is specific example - this is small bug or lack confguration, becouse when a sent request
host1.subdomain.tld and DNS1 send empty response dnsmasq should be wait for next upstream server but his don’t do that and write cache. In this moment all cliens have bad response. This strange because in config dnsmasq have default

all-servers

And with this option should wait for response all servers. And if all servers return empty response write to cache. And cached more complex result…

I couldn’t reproduce the problem.

Even with a not working DNS1 I get correct results and all servers are asked.

This is a way to check the queries processed by dnsmasq:

systemctl stop dnsmasq
dnsmasq -q --no-daemon