0

I use Dnsmasq to resolve DNS queries in my local network. To prevent the TV from loading ads/tracking me, I set up dnsmasq to resolve dozens of domains to localhost.

However, this has downsides. TV now regularly complains that it is not connected to the web. To investigate which of those blocked domains should be allowed to go through, a list of domain requests made by the TV is needed.

So how can I set up DNSmasq to log the TVs requests into a file/systemlog/somewhere?

3
  • 1
    Does this answer your question? How to log all DNS requests made through OpenWRT router? Nov 29, 2020 at 7:14
  • I saw this answer. But If I understand it right, it logs every query into a global log/file. I would rather only log the queries of specific devices. Nov 29, 2020 at 8:04
  • You can look at the options for dnsmasq here but glancing over them, I didn't see any built-in options for logging only certain devices. My guess is you may have to do some filtering on your own, whether that is some real-time implementation or e.g. simply grepping for the local IP(s) you want later. Nov 29, 2020 at 18:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.