# grep forwarded dnsmasq.log | awk ' { print $1, $2, $3, $NF } '
Feb 26 08:33:55 9.9.9.11
Feb 26 08:33:55 149.112.112.11
Feb 26 08:33:55 2620:fe::11
Feb 26 08:33:55 2620:fe::fe:11
Feb 26 08:33:55 149.112.112.11
Feb 26 08:33:55 149.112.112.11
Feb 26 08:33:55 149.112.112.11
Feb 26 08:33:56 149.112.112.11
Feb 26 08:33:56 149.112.112.11
Feb 26 08:33:56 149.112.112.11
Feb 26 08:33:56 149.112.112.11
Feb 26 08:33:56 149.112.112.11
Feb 26 08:33:56 149.112.112.11
Feb 26 08:34:35 9.9.9.11
Feb 26 08:34:35 149.112.112.11
Feb 26 08:34:35 2620:fe::11
Feb 26 08:34:35 2620:fe::fe:11
Feb 26 08:34:35 9.9.9.11
Feb 26 08:34:51 9.9.9.11
Feb 26 08:34:51 9.9.9.11
Feb 26 08:34:51 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:52 9.9.9.11
Feb 26 08:34:57 9.9.9.11
Feb 26 08:34:57 149.112.112.11
Feb 26 08:34:57 2620:fe::11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:34:57 2620:fe::fe:11
Feb 26 08:35:01 2620:fe::fe:11
Feb 26 08:35:01 2620:fe::fe:11
Feb 26 08:35:01 2620:fe::fe:11
Feb 26 08:35:01 2620:fe::fe:11
Feb 26 08:35:29 9.9.9.11
Feb 26 08:35:29 149.112.112.11
Feb 26 08:35:29 2620:fe::11
Feb 26 08:35:29 2620:fe::fe:11
Feb 26 08:35:29 2620:fe::fe:11
Feb 26 08:35:29 2620:fe::fe:11
Feb 26 08:35:29 2620:fe::fe:11
Feb 26 08:35:29 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:30 2620:fe::fe:11
Feb 26 08:35:31 2620:fe::fe:11
Feb 26 08:35:31 2620:fe::fe:11
Feb 26 08:35:31 2620:fe::fe:11
Feb 26 08:35:31 2620:fe::fe:11
Feb 26 08:35:31 2620:fe::fe:11
Feb 26 08:35:32 2620:fe::fe:11
Feb 26 08:37:31 9.9.9.11
Feb 26 08:37:31 149.112.112.11
Feb 26 08:37:31 2620:fe::11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
Feb 26 08:37:31 2620:fe::fe:11
/etc/dnsmasq.user/user.conf
is not normally a valid directory or filename for dnsmasq (see the man page). Maybe the version of Asuswrt that you're using is different than Merlin's? Or maybe you're using an addon script that has it's own implementation of dnsmasq?all-servers
line to /jffs/configs/dnsmasq.conf.add
.DNSMASQ has the option to let you send the query to all the DNS servers you configed and it would choose the fastest response one. On Asuswrt, seems this option is not enabled by default, I have to add this in the user.conf and let it pickup when it starts or reloads.
I don't see either of these parameters (from the Linux man page https://linux.die.net/man/8/dnsmasq ) in my /tmp/etc/dnsmasq.conf, so I assume it is using the defaults described in each which seem to contradict each other... (?):
--strict-order By default, dnsmasq will send queries to any of the upstream servers it knows about and tries to favour servers that are known to be up. Setting this flag forces dnsmasq to try each query with each server strictly in the order they appear in /etc/resolv.conf
--all-servers By default, when dnsmasq has more than one upstream server available, it will send queries to just one server. Setting this flag forces dnsmasq to send all queries to all available servers. The reply from the server which answers first will be returned to the original requestor.
Strange. My RT-AX86U is still on the 386 code base and using namebench I can see that the default behaviour is exactly as Dave (and the source code) says.Mine does it by default, nothing custom needed. Running 386 code base.
Mar 10 02:19:37 dnsmasq[27387]: server 176.103.130.132#53: queries sent 9, retried or failed 0
Mar 10 02:19:37 dnsmasq[27387]: server 194.168.4.100#53: queries sent 414, retried or failed 1
Mar 10 02:22:36 dnsmasq[28084]: server 194.168.4.100#53: queries sent 414, retried or failed 0
Mar 10 02:22:36 dnsmasq[28084]: server 176.103.130.132#53: queries sent 8, retried or failed 0
Mar 10 02:33:54 dnsmasq[30382]: server 194.168.4.100#53: queries sent 409, retried or failed 0
Mar 10 02:33:54 dnsmasq[30382]: server 176.103.130.132#53: queries sent 409, retried or failed 0
Strange. My RT-AX86U is still on the 386 code base and using namebench I can see that the default behaviour is exactly as Dave (and the source code) says.
Here is a run of 400 uncached queries using one fast (my ISP) and one slow (adguard) server.
Here is the same test with the order of the servers reversed. Notice how it's still using the faster server.Code:Mar 10 02:19:37 dnsmasq[27387]: server 176.103.130.132#53: queries sent 9, retried or failed 0 Mar 10 02:19:37 dnsmasq[27387]: server 194.168.4.100#53: queries sent 414, retried or failed 1
And here is the same test using the all-servers option.Code:Mar 10 02:22:36 dnsmasq[28084]: server 194.168.4.100#53: queries sent 414, retried or failed 0 Mar 10 02:22:36 dnsmasq[28084]: server 176.103.130.132#53: queries sent 8, retried or failed 0
Code:Mar 10 02:33:54 dnsmasq[30382]: server 194.168.4.100#53: queries sent 409, retried or failed 0 Mar 10 02:33:54 dnsmasq[30382]: server 176.103.130.132#53: queries sent 409, retried or failed 0
Thanks, Colin. You are right, mine is not Merlin. It is a modified stuff. I will see whether it will work if I put them at /jffs/configs/dnsmasq.conf.add.@pseu_asus/etc/dnsmasq.user/user.conf
is not normally a valid directory or filename for dnsmasq (see the man page). Maybe the version of Asuswrt that you're using is different than Merlin's? Or maybe you're using an addon script that has it's own implementation of dnsmasq?
In the "normal" Merlin firmware you would add theall-servers
line to/jffs/configs/dnsmasq.conf.add
.
Thanks, Colin. You are right, mine is not Merlin. It is a modified stuff. I will see whether it will work if I put them at /jffs/configs/dnsmasq.conf.add.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!