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] error: not giving name to the DHCP lease because the name exists in /etc/hosts

2019-12-09 Thread isidore . leroux
Dear all

I have been trying to resolve that issue for the past 2 days.

I am using dnsmasq for dns and dhcp, and using the hosts file to statically 
assigned ip to known hosts.

It doesn't work with the following error message:

"not giving name myhost.example.com to the DHCP lease of 192.168.0.121 because 
the name exists in /etc/hosts with address 192.168.0.7"

I have cleared the leases file.

If I had the host in the conf file, it works:

"dhcp-host=myhost,192.168.0.7"

/etc/dnsmasq.conf

#***
listen-address=127.0.0.1
listen-address=192.168.0.1

server=127.0.0.1 #dnsmasq
server=208.67.222.222 #OpenDNS
server=208.67.220.220 #OpenDNS

interface=eno2
port=53
bind-interfaces
dhcp-authoritative

domain=example.com
local=/example.com/

dhcp-option=eno2,3,192.168.0.1 # gateway
dhcp-option=eno2,6,192.168.0.1 # DNS
dhcp-range=eno2,192.168.0.100,192.168.0.254,24h # DHCP

domain-needed
expand-hosts

no-poll
no-resolv
bogus-priv
#***

/etc/hosts

#***
192.168.0.7  myhost
#***

Thanks

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


[Dnsmasq-discuss] How to update ipv6 for own interface? (Updated info)

2019-12-09 Thread John Siu
Ok, let me elaborate more.

I have following setup:

Linux router server:
- OS: Ubuntu 18.04
- wide-dhcp-client on external(internet facing) nic
- dnsmasq on lan interface(hostname: router) as dns, ipv4 + ipv6 dhcp
- lan interface IPv6 configure by wide-dhcp-client, IPv4
static(172.16.168.1) via netplan
- internal domain: int.johnsiu.com(configure in dnsmasq)

Servers on LAN
- couple mac, linux machines on lan network
- all have static dhcp ipv4 from dnsmasq.
- all have ipv4 entry in router /etc/hosts

dnsmasq is able to do dns resolve for all linux machines for both ipv4 and
ipv6. eg:

ssh -4 test.int.johnsiu.com
ssh -6 test.int.johnsiu.com

However, this does not work for the router lan interface. I already did
following:

In /etc/hosts:

  172.16.168.1 router

In /etc/dnsmasq.d/lan.conf, I have following lines for router:

  dhcp-host=e2:1d:6b:2d:33:e7,172.16.168.1,router,infinite

While "ssh -4 router.int.johnsiu.com" works, "ssh -6 router.int.johnsiu.com"
doesn't.

Is there a way to make it happen?
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Out-of-bound heap write when parsing invalid --dhcp-mac option

2019-12-09 Thread Klaus Eisentraut
Hi,

I found another crash in parsing code of a configuration file or command
line options. To reproduce it, simply run

  dnsmasq --dhcp-mac=,A...A

with "a lot of" A (>=89 with dnsmasq 2.80 on Linux 5.4.2-arch1-1). If
you run dnsmasq without Address Sanitizer (ASAN), it won't crash
immediately, but instead overwrite glibc metadata and crash later on:

> $ dnsmasq --dhcp-mac=,A...A
> malloc(): invalid next size (unsorted)
> Terminated (core dumped)

If you compile & run it with -fsanitize=address, you can see the actual
root cause:

> $ ./dnsmasq-asan --dhcp-mac=,A...A
> =
> ==32920==ERROR: AddressSanitizer: heap-buffer-overflow on address
> 0x60600118 at pc 0x55f58e931e2d bp 0x7ffc8a3af1a0 sp
> 0x7ffc8a3af190
> WRITE of size 1 at 0x60600118 thread T0
>  #0 0x55f58e931e2c in parse_hex /tmp/dnsmasq/src/util.c:573
>  #1 0x55f58e95d6b9 in one_opt /tmp/dnsmasq/src/option.c:3690
>  #2 0x55f58e992879 in read_opts /tmp/dnsmasq/src/option.c:5045
>  #3 0x55f58e8e198e in main /tmp/dnsmasq/src/dnsmasq.c:95
>  #4 0x7f1fff40d152 in __libc_start_main (/usr/lib/libc.so.6+0x27152)
>  #5 0x55f58e8edfbd in _start (/home/klaus/dnsmasq-fuzzing/src/dnsmasq-
> asan+0x2ffbd)
>
> 0x60600118 is located 0 bytes to the right of 56-byte region
> [0x606000e0,0x60600118)
> allocated by thread T0 here:
>   #0 0x7f1fff6bdcd8 in __interceptor_calloc /build/gcc/src
> /gcc/libsanitizer/asan/asan_malloc_linux.cc:153
>#1 0x55f58e92e5a8 in safe_malloc /tmp/dnsmasq/src/util.c:278
>
> SUMMARY: AddressSanitizer: heap-buffer-overflow /tmp/dnsmasq
> /src/util.c:573 in parse_hex

>From a quick grep in the code, there may be other, more interesting ways
to reach the parse_hex(...) function, too.

Kind regards,
Klaus Eisentraut

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


[Dnsmasq-discuss] How to update ipv6 for own interface?

2019-12-09 Thread John Siu
I am using dnsmasq dhcp for both ipv4 and ipv6 and it is able to auto
generate the dns entries for both, at least for linux servers.

Is there a way to make it do the same on selected interface(s) of the
server dnsmasq is running?

PS: I already have the server IPv4 entry in /etc/hosts
___
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