DNS forwarding slow (dnsmasq)

It seems like DNS requests for non-cached entries often take a very long time. Sometimes several seconds. Any help diagnosing or fixing the problem is very appreciated.

Non-standard settings I have:
1.) unchecked "Interfaces -> WAN -> Use DNS servers advertised by peer"
2.) Added 4 DNS servers right underneath [1.1.1.1, 1.0.0.1, 8.8.8.8, 8.8.4.4]

Fri Nov 24 17:18:59 2023 daemon.info dnsmasq[1]: 179334 10.83.2.108/57759 query[A] forum.openwrt.org from 10.83.2.108
Fri Nov 24 17:18:59 2023 daemon.info dnsmasq[1]: 179334 10.83.2.108/57759 forwarded forum.openwrt.org to 1.1.1.1
Fri Nov 24 17:18:59 2023 daemon.info dnsmasq[1]: 179335 10.83.2.108/57759 query[A] forum.openwrt.org from 10.83.2.108
Fri Nov 24 17:18:59 2023 daemon.info dnsmasq[1]: 179335 10.83.2.108/57759 forwarded forum.openwrt.org to 1.1.1.1
Fri Nov 24 17:18:59 2023 daemon.info dnsmasq[1]: 179335 10.83.2.108/57759 forwarded forum.openwrt.org to 1.0.0.1
Fri Nov 24 17:18:59 2023 daemon.info dnsmasq[1]: 179335 10.83.2.108/57759 forwarded forum.openwrt.org to 8.8.8.8
Fri Nov 24 17:18:59 2023 daemon.info dnsmasq[1]: 179335 10.83.2.108/57759 forwarded forum.openwrt.org to 8.8.4.4
Fri Nov 24 17:19:00 2023 daemon.info dnsmasq[1]: 179336 10.83.2.108/57759 query[A] forum.openwrt.org from 10.83.2.108
Fri Nov 24 17:19:00 2023 daemon.info dnsmasq[1]: 179336 10.83.2.108/57759 forwarded forum.openwrt.org to 1.1.1.1
Fri Nov 24 17:19:00 2023 daemon.info dnsmasq[1]: 179336 10.83.2.108/57759 forwarded forum.openwrt.org to 1.0.0.1
Fri Nov 24 17:19:00 2023 daemon.info dnsmasq[1]: 179336 10.83.2.108/57759 forwarded forum.openwrt.org to 8.8.8.8
Fri Nov 24 17:19:00 2023 daemon.info dnsmasq[1]: 179336 10.83.2.108/57759 forwarded forum.openwrt.org to 8.8.4.4
Fri Nov 24 17:19:00 2023 daemon.info dnsmasq[1]: 179336 10.83.2.108/57759 reply forum.openwrt.org is 139.59.210.197

And if you configure the same DNSes directly on the client(s) ?

Is there a possibility to let the DHCP server pass down those 4 DNS instead of itself? Then I could test it on all devices easily.

Yes - under Interface's DHCP Advanced settings:

Assign DHCP Option No. 6.

6,1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4

1 Like

What @lleachii said, but in reality I don't think clients will use more than two, even if they're given four.

1 Like

I suspect that my problem has to do with tailscale. For now I direct clients directly to the external DNS and I disabled "Tailscale DNS" on Windows clients as well. Will observe for a few days and then start enabling stuff step by step again.