Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-12 Thread John Siu
I see. I did a rapid chain of dig in one line and see the behavior you described. Thank you for the explanation!! On Thu, Dec 12, 2019 at 1:16 PM Simon Kelley wrote: > > By default, dnsmasq send a query to all the upstream servers over 50 > queries or every 20 seconds. If you're testing and

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-12 Thread Simon Kelley
By default, dnsmasq send a query to all the upstream servers over 50 queries or every 20 seconds. If you're testing and doing queries slowly, the 20 second rule can make it look like _every_ query gets broadcast. If this is a problem, you can edit src/config.h and recompile. #define

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread John Siu
You will need "log-queries=extra" in config to see it. Then use nslookup/dig to different domains. On Tue, Dec 10, 2019 at 11:35 AM John Siu wrote: > > I see it doing it for every single request. > > On Tue, Dec 10, 2019 at 11:12 AM Simon Rettberg > wrote: > > > > Am Mon, 9 Dec 2019 11:58:22

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread John Siu
I see it doing it for every single request. On Tue, Dec 10, 2019 at 11:12 AM Simon Rettberg wrote: > > Am Mon, 9 Dec 2019 11:58:22 -0500 > schrieb John Siu : > > dnsmasq sends queries to all servers occasionally to determine which > one replies fastest, and then keeps using that one exclusively

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread Simon Rettberg
Am Mon, 9 Dec 2019 11:58:22 -0500 schrieb John Siu : dnsmasq sends queries to all servers occasionally to determine which one replies fastest, and then keeps using that one exclusively for a while. Do you see every single query sent to all servers, or just the first one after restarting dnsmasq?

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread John Siu
dns_srv.conf: server=8.8.8.8 server=8.8.4.4 server=1.1.1.1 server=1.0.0.1 server=209.18.47.61 server=209.18.47.62 server=209.18.47.63 ## forward dns : ipv6 server=2001:4860:4860:: server=2001:4860:4860::8844 server=2606:4700:4700:: server=2606:4700:4700::1001 server=2001:1998:f00:1::1

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread Siji Sunny
And what's in dns_srv.conf file ? On Tue, Dec 10, 2019 at 3:54 PM Geert Stappers < geert.stapp...@hendrikx-itc.nl> wrote: > On Tue, Dec 10, 2019 at 03:17:41AM -0500, John Siu wrote: > > On Tue, Dec 10, 2019 at 3:07 AM Siji Sunny wrote: > > > On Tue, Dec 10, 2019 at 12:52 PM John Siu wrote: > >

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread Geert Stappers
On Tue, Dec 10, 2019 at 03:17:41AM -0500, John Siu wrote: > On Tue, Dec 10, 2019 at 3:07 AM Siji Sunny wrote: > > On Tue, Dec 10, 2019 at 12:52 PM John Siu wrote: > >> I tried with "default" in its own line, that gives error too. > > > > Will you please share dnsmasq.conf here. Which could and

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread Siji Sunny
Will you please share dnsmasq.conf here. On Tue, Dec 10, 2019 at 12:52 PM John Siu wrote: > I tried with "default" in its own line, that gives error too. > > On Tue, Dec 10, 2019 at 2:16 AM Siji Sunny < > siji.su...@sugarboxnetworks.com> wrote: > >> >> There is no "default" option. It actually

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-10 Thread John Siu
Following is my config: # DNS #dns-forward-max=4 # LOG #log-queries=extra # log all query for debugging #log-dhcp quiet-dhcp quiet-dhcp6 quiet-ra except-interface=enp1s0 #listen-address=::1,127.0.0.1,172.168.168.1 no-poll # don't poll /etc/resolv.con for change no-resolv # don't use

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread John Siu
There is no "default" option. It actually give error if I add it by itself or "all-servers=default". I went through the man page again and there is no other option affecting this behavior. I am starting to think this is a bug. On Tue, Dec 10, 2019 at 1:03 AM Siji Sunny wrote: > > It should be

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread Siji Sunny
There is no "default" option. It actually give error if I add it by itself > or "all-servers=default". > It not "all-servers=default", just "default" > I went through the man page again and there is no other option affecting > this behavior. I am starting to think this is a bug. > > On Tue, Dec

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread John Siu
I tried with "default" in its own line, that gives error too. On Tue, Dec 10, 2019 at 2:16 AM Siji Sunny wrote: > > There is no "default" option. It actually give error if I add it by itself >> or "all-servers=default". >> > It not "all-servers=default", just "default" > > >> I went through the

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread John Siu
Base on my understanding of the manpage, "all-servers" means dnsmasq will send query to all servers at once and use the 1st response. I am seeing all my queries, if not already in cache, are sent to all servers configured. But I don't have "all-servers" set. I want to turn off this behavior. On

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread Siji Sunny
> It should be off, base on manpage. And I don't know how to set a "off" to > it. > Adding "default" inside the config file, may help you. With reference to man page, default option will send queries to just one server. > On Tue, Dec 10, 2019 at 12:45 AM Siji Sunny < >

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread Siji Sunny
Base on my understanding of the manpage, "all-servers" means dnsmasq will > send query to all servers at once and use the 1st response. > > I am seeing all my queries, if not already in cache, are sent to all > servers configured. But I don't have "all-servers" set. I want to turn off > this

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread John Siu
It should be off, base on manpage. And I don't know how to set a "off" to it. On Tue, Dec 10, 2019 at 12:45 AM Siji Sunny wrote: > > Base on my understanding of the manpage, "all-servers" means dnsmasq will >> send query to all servers at once and use the 1st response. >> >> I am seeing all my

Re: [Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread Siji Sunny
> OS: Ubuntu 18.04 with all updates > dnsmasq version: 2.79-1 > > According to man page: > > --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

[Dnsmasq-discuss] "--all-servers" always on?

2019-12-09 Thread John Siu
OS: Ubuntu 18.04 with all updates dnsmasq version: 2.79-1 According to man page: --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