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 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 FORWARD_TEST 50 /* try all servers every 50 queries */
> #define FORWARD_TIME 20 /* or 20 seconds */
>
>
>
> Cheers,
>
> Simon.
>
>
> On 10/12/2019 16:41, John Siu wrote:
> > 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 -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?
> >>>
> >>> - Simon
> >>>
>  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
>  reply  from  the  server which  answers first will be returned to the
>  original requester.
> 
>  I don't have that flag in command line or in the config file. However
>  with "log-queries=extra" in config file, I am seeing following:
> 
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
>  news.com from 10.10.10.101
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 2001:1998:f00:2::1
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 2001:1998:f00:1::1
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 2606:4700:4700::1001
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 2606:4700:4700::
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 2001:4860:4860::8844
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 2001:4860:4860::
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 209.18.47.63
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 209.18.47.62
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 209.18.47.61
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 1.0.0.1
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 1.1.1.1
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 8.8.4.4
>  Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>  news.com to 8.8.8.8
>  Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
>  news.com is 35.190.79.82
> 
>  Is --all-servers behavior changed to default on? Is there a way to
>  revert it?
> 
>  Thank you!
> 
>  John Siu
> >>>
> >
> > ___
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss@lists.thekelleys.org.uk
> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> >
>
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 FORWARD_TEST 50 /* try all servers every 50 queries */
#define FORWARD_TIME 20 /* or 20 seconds */



Cheers,

Simon.


On 10/12/2019 16:41, John Siu wrote:
> 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 -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?
>>>
>>> - Simon
>>>
 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
 reply  from  the  server which  answers first will be returned to the
 original requester.

 I don't have that flag in command line or in the config file. However
 with "log-queries=extra" in config file, I am seeing following:

 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
 news.com from 10.10.10.101
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:1998:f00:2::1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:1998:f00:1::1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2606:4700:4700::1001
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2606:4700:4700::
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:4860:4860::8844
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:4860:4860::
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 209.18.47.63
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 209.18.47.62
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 209.18.47.61
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 1.0.0.1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 1.1.1.1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 8.8.4.4
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 8.8.8.8
 Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
 news.com is 35.190.79.82

 Is --all-servers behavior changed to default on? Is there a way to
 revert it?

 Thank you!

 John Siu
>>>
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 -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?
> >
> > - Simon
> >
> > > 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
> > > reply  from  the  server which  answers first will be returned to the
> > > original requester.
> > >
> > > I don't have that flag in command line or in the config file. However
> > > with "log-queries=extra" in config file, I am seeing following:
> > >
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
> > > news.com from 10.10.10.101
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 2001:1998:f00:2::1
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 2001:1998:f00:1::1
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 2606:4700:4700::1001
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 2606:4700:4700::
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 2001:4860:4860::8844
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 2001:4860:4860::
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 209.18.47.63
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 209.18.47.62
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 209.18.47.61
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 1.0.0.1
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 1.1.1.1
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 8.8.4.4
> > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > > news.com to 8.8.8.8
> > > Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
> > > news.com is 35.190.79.82
> > >
> > > Is --all-servers behavior changed to default on? Is there a way to
> > > revert it?
> > >
> > > Thank you!
> > >
> > > John Siu
> >

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 for a
> while. Do you see every single query sent to all servers, or just the
> first one after restarting dnsmasq?
>
> - Simon
>
> > 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
> > reply  from  the  server which  answers first will be returned to the
> > original requester.
> >
> > I don't have that flag in command line or in the config file. However
> > with "log-queries=extra" in config file, I am seeing following:
> >
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
> > news.com from 10.10.10.101
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 2001:1998:f00:2::1
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 2001:1998:f00:1::1
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 2606:4700:4700::1001
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 2606:4700:4700::
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 2001:4860:4860::8844
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 2001:4860:4860::
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 209.18.47.63
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 209.18.47.62
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 209.18.47.61
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 1.0.0.1
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 1.1.1.1
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 8.8.4.4
> > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> > news.com to 8.8.8.8
> > Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
> > news.com is 35.190.79.82
> >
> > Is --all-servers behavior changed to default on? Is there a way to
> > revert it?
> >
> > Thank you!
> >
> > John Siu
>

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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?

- Simon

> 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
> reply  from  the  server which  answers first will be returned to the
> original requester.
> 
> I don't have that flag in command line or in the config file. However
> with "log-queries=extra" in config file, I am seeing following:
> 
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
> news.com from 10.10.10.101
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:1998:f00:2::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:1998:f00:1::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2606:4700:4700::1001
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2606:4700:4700::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:4860:4860::8844
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:4860:4860::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.63
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.62
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.61
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 1.0.0.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 1.1.1.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 8.8.4.4
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 8.8.8.8
> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
> news.com is 35.190.79.82
> 
> Is --all-servers behavior changed to default on? Is there a way to
> revert it?
> 
> Thank you!
> 
> John Siu


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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
server=2001:1998:f00:2::1


On Tue, Dec 10, 2019 at 7:37 AM Siji Sunny 
wrote:

> 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:
>> > >> I tried with "default" in its own line, that gives error too.
>> > >
>> > > Will you please share dnsmasq.conf here.
>>
>> Which could and should have shared in the original post
>>
>>
>> > 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 /etc/resolv.conf
>> > bogus-priv #
>> > domain-needed # don't query upstream with hostname only
>> > expand-hosts # expend hostname with local domain
>> > rebind-localhost-ok
>> > #stop-dns-rebind # don't replace entry with local ip
>> >
>> > neg-ttl=3600
>> > min-cache-ttl=3600
>> > cache-size=1
>> > #log-async=10
>> >
>> > ## local domain
>> > domain=int.johnsiu.com
>> > local=/int.johnsiu.com/
>> > rebind-domain-ok=/int.johnsiu.com/
>> >
>> > ## Server
>> > servers-file=/etc/dnsmasq.d/extra/dns_srv.conf
>>
>> Yeah
>>
>>
>> > ## forward dns : ipv4
>> > #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
>> > #server=2001:1998:f00:2::1
>> >
>> > # dhcp : ipv4
>> >
>> > ## LAN
>> > dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h
>> > dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw
>> > dhcp-option=tag:lan,6,172.16.168.1 # option 6 dns
>> > dhcp-option=tag:lan,option:ntp-server,172.16.168.1
>> > ## DMZ
>> > dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h
>> > dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw
>> > dhcp-option=tag:dmz,6,10.10.10.1 # option 6 dns
>> > dhcp-option=tag:dmz,option:ntp-server,10.10.10.1
>> >
>> > # dhcp : ipv6
>> >
>> > enable-ra
>> > # Construct a valid IPv6 range from reading the address set on the
>> interface.
>> > # The ::1 part refers to the ifid in dhcp6c.conf. Make sure you get
>> this right or dnsmasq will get confused.
>> > dhcp-range=tag:lan,::1,constructor:lan,ra-names,12h
>> > dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,12h
>> >
>> > # Static dhcp
>> > dhcp-hostsfile=/etc/dnsmasq.d/extra/lan_dmz.host
>> >
>> >
>>
>> ___
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss@lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>
>
> --
> Siji
>
>   |
>  |
> 
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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:
> > >> I tried with "default" in its own line, that gives error too.
> > >
> > > Will you please share dnsmasq.conf here.
>
> Which could and should have shared in the original post
>
>
> > 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 /etc/resolv.conf
> > bogus-priv #
> > domain-needed # don't query upstream with hostname only
> > expand-hosts # expend hostname with local domain
> > rebind-localhost-ok
> > #stop-dns-rebind # don't replace entry with local ip
> >
> > neg-ttl=3600
> > min-cache-ttl=3600
> > cache-size=1
> > #log-async=10
> >
> > ## local domain
> > domain=int.johnsiu.com
> > local=/int.johnsiu.com/
> > rebind-domain-ok=/int.johnsiu.com/
> >
> > ## Server
> > servers-file=/etc/dnsmasq.d/extra/dns_srv.conf
>
> Yeah
>
>
> > ## forward dns : ipv4
> > #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
> > #server=2001:1998:f00:2::1
> >
> > # dhcp : ipv4
> >
> > ## LAN
> > dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h
> > dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw
> > dhcp-option=tag:lan,6,172.16.168.1 # option 6 dns
> > dhcp-option=tag:lan,option:ntp-server,172.16.168.1
> > ## DMZ
> > dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h
> > dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw
> > dhcp-option=tag:dmz,6,10.10.10.1 # option 6 dns
> > dhcp-option=tag:dmz,option:ntp-server,10.10.10.1
> >
> > # dhcp : ipv6
> >
> > enable-ra
> > # Construct a valid IPv6 range from reading the address set on the
> interface.
> > # The ::1 part refers to the ifid in dhcp6c.conf. Make sure you get this
> right or dnsmasq will get confused.
> > dhcp-range=tag:lan,::1,constructor:lan,ra-names,12h
> > dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,12h
> >
> > # Static dhcp
> > dhcp-hostsfile=/etc/dnsmasq.d/extra/lan_dmz.host
> >
> >
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>


-- 
Siji

-- 
   |  
 |  




___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 should have shared in the original post


> 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 /etc/resolv.conf
> bogus-priv #
> domain-needed # don't query upstream with hostname only
> expand-hosts # expend hostname with local domain
> rebind-localhost-ok
> #stop-dns-rebind # don't replace entry with local ip
> 
> neg-ttl=3600
> min-cache-ttl=3600
> cache-size=1
> #log-async=10
> 
> ## local domain
> domain=int.johnsiu.com
> local=/int.johnsiu.com/
> rebind-domain-ok=/int.johnsiu.com/
> 
> ## Server
> servers-file=/etc/dnsmasq.d/extra/dns_srv.conf

Yeah


> ## forward dns : ipv4
> #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
> #server=2001:1998:f00:2::1
> 
> # dhcp : ipv4
> 
> ## LAN
> dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h
> dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw
> dhcp-option=tag:lan,6,172.16.168.1 # option 6 dns
> dhcp-option=tag:lan,option:ntp-server,172.16.168.1
> ## DMZ
> dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h
> dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw
> dhcp-option=tag:dmz,6,10.10.10.1 # option 6 dns
> dhcp-option=tag:dmz,option:ntp-server,10.10.10.1
> 
> # dhcp : ipv6
> 
> enable-ra
> # Construct a valid IPv6 range from reading the address set on the interface.
> # The ::1 part refers to the ifid in dhcp6c.conf. Make sure you get this 
> right or dnsmasq will get confused.
> dhcp-range=tag:lan,::1,constructor:lan,ra-names,12h
> dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,12h
> 
> # Static dhcp
> dhcp-hostsfile=/etc/dnsmasq.d/extra/lan_dmz.host
> 
> 

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 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 10, 2019 at 1:03 AM Siji Sunny <
>>> siji.su...@sugarboxnetworks.com> wrote:
>>>

 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 <
> siji.su...@sugarboxnetworks.com> 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 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.
>>>
>>
>> Interesting, we used to enable it by adding the entry all-servers @
>> dnsmasq.conf file. And by default its turned-off.
>>
>>
>>>
>>> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
>>> siji.su...@sugarboxnetworks.com> wrote:
>>>

 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 reply
>  from  the  server  which  answers first will be returned to the 
> original
> requester.
>
> I don't have that flag in command line or in the config file.
> However with "log-queries=extra" in config file, I am seeing 
> following:
>
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> query[A] news.com from 10.10.10.101
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 2001:1998:f00:2::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 2001:1998:f00:1::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 2606:4700:4700::1001
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 2606:4700:4700::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 2001:4860:4860::8844
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 2001:4860:4860::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 209.18.47.63
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 209.18.47.62
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 209.18.47.61
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 1.0.0.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 1.1.1.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 8.8.4.4
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
> forwarded news.com to 8.8.8.8
> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
> news.com is 35.190.79.82
>
> Is --all-servers behavior changed to default on? Is there a way to
> revert it?
>

 Dear John,
 If I understood correctly, option all-servers will enable dnsmasq
 to send the resolve query to the secondary dns server defined, if its
 failed to resolve from the first one.


>
> Thank you!
>
> John Siu
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>


 --
 Siji

   |
  |
 

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 /etc/resolv.conf
bogus-priv #
domain-needed # don't query upstream with hostname only
expand-hosts # expend hostname with local domain
rebind-localhost-ok
#stop-dns-rebind # don't replace entry with local ip

neg-ttl=3600
min-cache-ttl=3600
cache-size=1
#log-async=10

## local domain
domain=int.johnsiu.com
local=/int.johnsiu.com/
rebind-domain-ok=/int.johnsiu.com/

## Server
servers-file=/etc/dnsmasq.d/extra/dns_srv.conf
## forward dns : ipv4
#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
#server=2001:1998:f00:2::1

# dhcp : ipv4

## LAN
dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h
dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw
dhcp-option=tag:lan,6,172.16.168.1 # option 6 dns
dhcp-option=tag:lan,option:ntp-server,172.16.168.1
## DMZ
dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h
dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw
dhcp-option=tag:dmz,6,10.10.10.1 # option 6 dns
dhcp-option=tag:dmz,option:ntp-server,10.10.10.1

# dhcp : ipv6

enable-ra
# Construct a valid IPv6 range from reading the address set on the
interface.
# The ::1 part refers to the ifid in dhcp6c.conf. Make sure you get this
right or dnsmasq will get confused.
dhcp-range=tag:lan,::1,constructor:lan,ra-names,12h
dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,12h

# Static dhcp
dhcp-hostsfile=/etc/dnsmasq.d/extra/lan_dmz.host


On Tue, Dec 10, 2019 at 3:07 AM Siji Sunny 
wrote:

> 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 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 10, 2019 at 1:03 AM Siji Sunny <
 siji.su...@sugarboxnetworks.com> wrote:

>
> 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 <
>> siji.su...@sugarboxnetworks.com> 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 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.

>>>
>>> Interesting, we used to enable it by adding the entry all-servers @
>>> dnsmasq.conf file. And by default its turned-off.
>>>
>>>

 On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
 siji.su...@sugarboxnetworks.com> wrote:

>
> 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 
>> reply
>>  from  the  server  which  answers first will be returned to the 
>> original
>> requester.
>>
>> I don't have that flag in command line or in the config file.
>> However with "log-queries=extra" in config file, I am seeing 
>> following:
>>
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> query[A] news.com from 10.10.10.101
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2001:1998:f00:2::1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2001:1998:f00:1::1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2606:4700:4700::1001
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 

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 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 <
>> siji.su...@sugarboxnetworks.com> 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 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.

>>>
>>> Interesting, we used to enable it by adding the entry all-servers @
>>> dnsmasq.conf file. And by default its turned-off.
>>>
>>>

 On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
 siji.su...@sugarboxnetworks.com> wrote:

>
> 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 reply
>>  from  the  server  which  answers first will be returned to the original
>> requester.
>>
>> I don't have that flag in command line or in the config file. However
>> with "log-queries=extra" in config file, I am seeing following:
>>
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
>> news.com from 10.10.10.101
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2001:1998:f00:2::1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2001:1998:f00:1::1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2606:4700:4700::1001
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2606:4700:4700::
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2001:4860:4860::8844
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 2001:4860:4860::
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 209.18.47.63
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 209.18.47.62
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 209.18.47.61
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 1.0.0.1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 1.1.1.1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 8.8.4.4
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>> forwarded news.com to 8.8.8.8
>> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
>> news.com is 35.190.79.82
>>
>> Is --all-servers behavior changed to default on? Is there a way to
>> revert it?
>>
>
> Dear John,
> If I understood correctly, option all-servers will enable dnsmasq to
> send the resolve query to the secondary dns server defined, if its failed
> to resolve from the first one.
>
>
>>
>> Thank you!
>>
>> John Siu
>> ___
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss@lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>
>
> --
> Siji
>
>   |
>  |
> 
>
>
>>>
>>> --
>>> Siji
>>>
>>>   |
>>>  |
>>> 
>>>
>>>
>
> --
> Siji
>
>   |
>  |
> 
>
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 10, 2019 at 1:03 AM Siji Sunny <
> siji.su...@sugarboxnetworks.com> wrote:
>
>>
>> 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 <
>>> siji.su...@sugarboxnetworks.com> 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 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.
>

 Interesting, we used to enable it by adding the entry all-servers @
 dnsmasq.conf file. And by default its turned-off.


>
> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
> siji.su...@sugarboxnetworks.com> wrote:
>
>>
>> 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 reply
>>>  from  the  server  which  answers first will be returned to the 
>>> original
>>> requester.
>>>
>>> I don't have that flag in command line or in the config file.
>>> However with "log-queries=extra" in config file, I am seeing following:
>>>
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> query[A] news.com from 10.10.10.101
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 2001:1998:f00:2::1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 2001:1998:f00:1::1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 2606:4700:4700::1001
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 2606:4700:4700::
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 2001:4860:4860::8844
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 2001:4860:4860::
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 209.18.47.63
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 209.18.47.62
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 209.18.47.61
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 1.0.0.1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 1.1.1.1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 8.8.4.4
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
>>> forwarded news.com to 8.8.8.8
>>> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
>>> news.com is 35.190.79.82
>>>
>>> Is --all-servers behavior changed to default on? Is there a way to
>>> revert it?
>>>
>>
>> Dear John,
>> If I understood correctly, option all-servers will enable dnsmasq to
>> send the resolve query to the secondary dns server defined, if its failed
>> to resolve from the first one.
>>
>>
>>>
>>> Thank you!
>>>
>>> John Siu
>>> ___
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss@lists.thekelleys.org.uk
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>>
>>
>>
>> --
>> Siji
>>
>>   |
>>  |
>> 
>>
>>

 --
 Siji

   |
  |
 


>>
>> --
>> Siji
>>
>>   |
>>  |
>> 
>>
>>

-- 
Siji

-- 
   |  

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 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 <
>> siji.su...@sugarboxnetworks.com> wrote:
>>
>>>
>>> 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 <
 siji.su...@sugarboxnetworks.com> 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 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.
>>
>
> Interesting, we used to enable it by adding the entry all-servers @
> dnsmasq.conf file. And by default its turned-off.
>
>
>>
>> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
>> siji.su...@sugarboxnetworks.com> wrote:
>>
>>>
>>> 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 reply
  from  the  server  which  answers first will be returned to the 
 original
 requester.

 I don't have that flag in command line or in the config file.
 However with "log-queries=extra" in config file, I am seeing following:

 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 query[A] news.com from 10.10.10.101
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 2001:1998:f00:2::1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 2001:1998:f00:1::1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 2606:4700:4700::1001
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 2606:4700:4700::
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 2001:4860:4860::8844
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 2001:4860:4860::
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 209.18.47.63
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 209.18.47.62
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 209.18.47.61
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 1.0.0.1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 1.1.1.1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 8.8.4.4
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351
 forwarded news.com to 8.8.8.8
 Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
 news.com is 35.190.79.82

 Is --all-servers behavior changed to default on? Is there a way to
 revert it?

>>>
>>> Dear John,
>>> If I understood correctly, option all-servers will enable dnsmasq to
>>> send the resolve query to the secondary dns server defined, if its 
>>> failed
>>> to resolve from the first one.
>>>
>>>

 Thank you!

 John Siu
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

>>>
>>>
>>> --
>>> Siji
>>>
>>>   |
>>>  |
>>> 
>>>
>>>
>
> --
> Siji
>
>   |
>  |
> 
>
>
>>>
>>> --
>>> Siji
>>>
>>> 

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 Tue, Dec 10, 2019 at 12:29 AM Siji Sunny 
wrote:

>
> 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 reply  from  the  server
>>  which  answers first will be returned to the original requester.
>>
>> I don't have that flag in command line or in the config file. However
>> with "log-queries=extra" in config file, I am seeing following:
>>
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
>> news.com from 10.10.10.101
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 2001:1998:f00:2::1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 2001:1998:f00:1::1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 2606:4700:4700::1001
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 2606:4700:4700::
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 2001:4860:4860::8844
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 2001:4860:4860::
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 209.18.47.63
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 209.18.47.62
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 209.18.47.61
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 1.0.0.1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 1.1.1.1
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 8.8.4.4
>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>> news.com to 8.8.8.8
>> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
>> news.com is 35.190.79.82
>>
>> Is --all-servers behavior changed to default on? Is there a way to revert
>> it?
>>
>
> Dear John,
> If I understood correctly, option all-servers will enable dnsmasq to send
> the resolve query to the secondary dns server defined, if its failed to
> resolve from the first one.
>
>
>>
>> Thank you!
>>
>> John Siu
>> ___
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss@lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
>
>
> --
> Siji
>
>   |
>  |
> 
>
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 <
> siji.su...@sugarboxnetworks.com> 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 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.
>>>
>>
>> Interesting, we used to enable it by adding the entry all-servers @
>> dnsmasq.conf file. And by default its turned-off.
>>
>>
>>>
>>> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
>>> siji.su...@sugarboxnetworks.com> wrote:
>>>

 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 reply
>  from  the  server  which  answers first will be returned to the original
> requester.
>
> I don't have that flag in command line or in the config file. However
> with "log-queries=extra" in config file, I am seeing following:
>
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
> news.com from 10.10.10.101
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:1998:f00:2::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:1998:f00:1::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2606:4700:4700::1001
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2606:4700:4700::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:4860:4860::8844
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:4860:4860::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.63
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.62
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.61
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 1.0.0.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 1.1.1.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 8.8.4.4
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 8.8.8.8
> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
> news.com is 35.190.79.82
>
> Is --all-servers behavior changed to default on? Is there a way to
> revert it?
>

 Dear John,
 If I understood correctly, option all-servers will enable dnsmasq to
 send the resolve query to the secondary dns server defined, if its failed
 to resolve from the first one.


>
> Thank you!
>
> John Siu
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>


 --
 Siji

   |
  |
 


>>
>> --
>> Siji
>>
>>   |
>>  |
>> 
>>
>>

-- 
Siji

-- 
   |  
 |  




___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 behavior.
>

Interesting, we used to enable it by adding the entry all-servers @
dnsmasq.conf file. And by default its turned-off.


>
> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
> siji.su...@sugarboxnetworks.com> wrote:
>
>>
>> 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 reply
>>>  from  the  server  which  answers first will be returned to the original
>>> requester.
>>>
>>> I don't have that flag in command line or in the config file. However
>>> with "log-queries=extra" in config file, I am seeing following:
>>>
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
>>> news.com from 10.10.10.101
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 2001:1998:f00:2::1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 2001:1998:f00:1::1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 2606:4700:4700::1001
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 2606:4700:4700::
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 2001:4860:4860::8844
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 2001:4860:4860::
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 209.18.47.63
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 209.18.47.62
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 209.18.47.61
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 1.0.0.1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 1.1.1.1
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 8.8.4.4
>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
>>> news.com to 8.8.8.8
>>> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
>>> news.com is 35.190.79.82
>>>
>>> Is --all-servers behavior changed to default on? Is there a way to
>>> revert it?
>>>
>>
>> Dear John,
>> If I understood correctly, option all-servers will enable dnsmasq to send
>> the resolve query to the secondary dns server defined, if its failed to
>> resolve from the first one.
>>
>>
>>>
>>> Thank you!
>>>
>>> John Siu
>>> ___
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss@lists.thekelleys.org.uk
>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>>
>>
>>
>> --
>> Siji
>>
>>   |
>>  |
>> 
>>
>>

-- 
Siji

-- 
   |  
 |  




___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 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.
>>
>
> Interesting, we used to enable it by adding the entry all-servers @
> dnsmasq.conf file. And by default its turned-off.
>
>
>>
>> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny <
>> siji.su...@sugarboxnetworks.com> wrote:
>>
>>>
>>> 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 reply
  from  the  server  which  answers first will be returned to the original
 requester.

 I don't have that flag in command line or in the config file. However
 with "log-queries=extra" in config file, I am seeing following:

 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
 news.com from 10.10.10.101
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:1998:f00:2::1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:1998:f00:1::1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2606:4700:4700::1001
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2606:4700:4700::
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:4860:4860::8844
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 2001:4860:4860::
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 209.18.47.63
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 209.18.47.62
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 209.18.47.61
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 1.0.0.1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 1.1.1.1
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 8.8.4.4
 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
 news.com to 8.8.8.8
 Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply
 news.com is 35.190.79.82

 Is --all-servers behavior changed to default on? Is there a way to
 revert it?

>>>
>>> Dear John,
>>> If I understood correctly, option all-servers will enable dnsmasq to
>>> send the resolve query to the secondary dns server defined, if its failed
>>> to resolve from the first one.
>>>
>>>

 Thank you!

 John Siu
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

>>>
>>>
>>> --
>>> Siji
>>>
>>>   |
>>>  |
>>> 
>>>
>>>
>
> --
> Siji
>
>   |
>  |
> 
>
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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 servers. The reply  from  the  server
>  which  answers first will be returned to the original requester.
>
> I don't have that flag in command line or in the config file. However with
> "log-queries=extra" in config file, I am seeing following:
>
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
> news.com from 10.10.10.101
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:1998:f00:2::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:1998:f00:1::1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2606:4700:4700::1001
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2606:4700:4700::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:4860:4860::8844
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 2001:4860:4860::
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.63
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.62
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 209.18.47.61
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 1.0.0.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 1.1.1.1
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 8.8.4.4
> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
> news.com to 8.8.8.8
> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply news.com
> is 35.190.79.82
>
> Is --all-servers behavior changed to default on? Is there a way to revert
> it?
>

Dear John,
If I understood correctly, option all-servers will enable dnsmasq to send
the resolve query to the secondary dns server defined, if its failed to
resolve from the first one.


>
> Thank you!
>
> John Siu
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>


-- 
Siji

-- 
   |  
 |  




___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[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 reply  from  the  server
 which  answers first will be returned to the original requester.

I don't have that flag in command line or in the config file. However with
"log-queries=extra" in config file, I am seeing following:

Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A]
news.com from 10.10.10.101
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 2001:1998:f00:2::1
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 2001:1998:f00:1::1
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 2606:4700:4700::1001
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 2606:4700:4700::
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 2001:4860:4860::8844
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 2001:4860:4860::
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 209.18.47.63
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 209.18.47.62
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 209.18.47.61
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 1.0.0.1
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 1.1.1.1
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 8.8.4.4
Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded
news.com to 8.8.8.8
Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply news.com
is 35.190.79.82

Is --all-servers behavior changed to default on? Is there a way to revert
it?

Thank you!

John Siu
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss