Re: [Dnsmasq-discuss] Log DNS Queries/Responses based on IP Address

2021-04-05 Thread Donald Muller
Thanks Geert. > -Original Message- > From: Dnsmasq-discuss > On Behalf Of Geert Stappers via Dnsmasq-discuss > Sent: Monday, April 5, 2021 3:55 AM > To: dnsmasq-discuss@lists.thekelleys.org.uk > Subject: Re: [Dnsmasq-discuss] Log DNS Queries/Responses based on IP > Address > > On Mon,

Re: [Dnsmasq-discuss] [PATCH] Retry queries only after giving the upstream server some time to respond

2021-04-05 Thread Simon Kelley
On 05/04/2021 21:30, Dominik Derigs wrote: > To be even more precise: > > On Mon, 2021-04-05 at 22:16 +0200, Dominik Derigs wrote: >> This is the issue I'm concerned about. Some clients send the same >> query >> multiple times (they don't seem to have a local cache). > > These clients don't even

Re: [Dnsmasq-discuss] [PATCH] Retry queries only after giving the upstream server some time to respond

2021-04-05 Thread Simon Kelley
On 05/04/2021 21:16, Dominik Derigs wrote: > Hey Simon, > > On Mon, 2021-04-05 at 20:38 +0100, Simon Kelley wrote: >> Post 2.83, a the second query would be combined with the first, which >> can only reduce upstream traffic. The change in 2.85 is that the second >> query triggers a retry, so

Re: [Dnsmasq-discuss] [PATCH] Retry queries only after giving the upstream server some time to respond

2021-04-05 Thread Dominik Derigs
To be even more precise: On Mon, 2021-04-05 at 22:16 +0200, Dominik Derigs wrote: > This is the issue I'm concerned about. Some clients send the same > query > multiple times (they don't seem to have a local cache). These clients don't even intend them as retries. Wireshark confirms they send

[Dnsmasq-discuss] [PATCH] Chomp file ends

2021-04-05 Thread Geert Stappers via Dnsmasq-discuss
From: Geert Stappers Removed empty lines from end of src/*.[ch] files. If the new last line became '#endif' was the condition of the '#if' added. --- src/arp.c| 2 -- src/auth.c | 3 --- src/blockdata.c | 1 - src/bpf.c| 2 -- src/cache.c | 2 --

Re: [Dnsmasq-discuss] [PATCH] Retry queries only after giving the upstream server some time to respond

2021-04-05 Thread Dominik Derigs
Hey Simon, On Mon, 2021-04-05 at 20:38 +0100, Simon Kelley wrote: > Post 2.83, a the second query would be combined with the first, which > can only reduce upstream traffic. The change in 2.85 is that the second > query triggers a retry, so closer to the original situation. BUT the > retry is

Re: [Dnsmasq-discuss] [PATCH] Retry queries only after giving the upstream server some time to respond

2021-04-05 Thread Simon Kelley
On 05/04/2021 20:38, Simon Kelley wrote: > I'll put up a patch in the next hour or so. Dominik, please could you > see if it improves the upstream traffic rate? If I've misunderstood or > mis-analysed this, I'll certainly look at you approach. > Patch there now:

Re: [Dnsmasq-discuss] [PATCH] Retry queries only after giving the upstream server some time to respond

2021-04-05 Thread Simon Kelley
On 05/04/2021 16:46, Dominik Derigs wrote: > Hey all, > > I've seeing a notable increase in upstream traffic with the current > dnsmasq release candidate. Some investigations have revealed that the > reason for this is the modified forwarding philosophy that *always* > triggers a retry

Re: [Dnsmasq-discuss] Partial denial of service with dnsmasq on resource constrained systems

2021-04-05 Thread Gordon Shawn
> > Hey Simon, > > On Thu, 2021-04-01 at 23:55 +0100, Simon Kelley wrote: > > I could do with a handle on exactly how people are configuring dnsmasq > > to do ad blocking. It's not something I have much experience of. > > The situation for Pi-hole (a popular ad blocker based on dnsmasq) is the >

[Dnsmasq-discuss] [PATCH] Retry queries only after giving the upstream server some time to respond

2021-04-05 Thread Dominik Derigs
Hey all, I've seeing a notable increase in upstream traffic with the current dnsmasq release candidate. Some investigations have revealed that the reason for this is the modified forwarding philosophy that *always* triggers a retry whenever a query is received before the upstream was able to

[Dnsmasq-discuss] Monthly posting

2021-04-05 Thread Monthly posting
Hi, "How To Ask Questions The Smart Way" has immediatly after the introduction an advice on before you ask. http://www.catb.org/esr/faqs/smart-questions.html#before Following that advice is still no guarantee for a quick response. So when you are still stuck with something that you think

Re: [Dnsmasq-discuss] Log DNS Queries/Responses based on IP Address

2021-04-05 Thread Geert Stappers via Dnsmasq-discuss
On Mon, Apr 05, 2021 at 09:47:38AM +0200, Yes wrote: > On Sat, Apr 03, 2021 at 09:02:02PM +, Donald Muller wrote: > > I looked at the man pages but didn't see anything for this (maybe > > I missed it). Is there a way to specify DNS logging based on an IP > > address? In other word I just want

Re: [Dnsmasq-discuss] Log DNS Queries/Responses based on IP Address

2021-04-05 Thread Yes via Dnsmasq-discuss
On Sat, Apr 03, 2021 at 09:02:02PM +, Donald Muller wrote: > I looked at the man pages but didn't see anything for this (maybe > I missed it). Is there a way to specify DNS logging based on an IP > address? In other word I just want to log DNS queries and responses > from/to a particular IP