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

Geert Stappers stappers at stappers.nl
Mon Apr 5 07:55:11 UTC 2021

On Mon, Apr 05, 2021 at 09:47:38AM +0200, Yes wrote:
> On Sat, Apr 03, 2021 at 09:02:02PM +0000, 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 address. Is this possible?
> Yes

Adding such **condiontal** logging to dnsmasq should be avoided.

Run dnsmasq with --log-queries=extra and filter from the output
the wanted information.

Geert Stappers
Silence is hard to parse

More information about the Dnsmasq-discuss mailing list