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?
dnsmasqhere 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.