Re: [Dnsmasq-discuss] Show host names in dnsmasq's log

2018-02-06 Thread Simon Kelley
On 05/02/18 13:33, Dominik DL6ER wrote: > Hey Michael and Simon, > > Thanks. I already have added a cache lookup myself using dnsmasq's > cache_find_by_addr(). However, this is unsuitable for getting the host > names of the forward servers or if you are not the DHCP server. > > How could I trigge

Re: [Dnsmasq-discuss] Show host names in dnsmasq's log

2018-02-06 Thread Simon Kelley
That looks useful. Would the denizens of the list like this facility? Cheers, Simon. On 05/02/18 13:03, Michael Stiemke wrote: > I have modified cache.c to do this. > >   > > Output in the log now looks like this: > >   > > query[A] v20.vortex-win.data.microsoft.com from 192.168.5.118 = >

Re: [Dnsmasq-discuss] Show host names in dnsmasq's log

2018-02-05 Thread Dominik DL6ER
Hey Michael and Simon, Thanks. I already have added a cache lookup myself using dnsmasq's cache_find_by_addr(). However, this is unsuitable for getting the host names of the forward servers or if you are not the DHCP server. How could I trigger a PTR request from within dnsmasq? This will add the

[Dnsmasq-discuss] Show host names in dnsmasq's log

2018-02-05 Thread Michael Stiemke
I have modified cache.c to do this. Output in the log now looks like this: query[A] v20.vortex-win.data.microsoft.com from 192.168.5.118 = cpu-video (dhcp) or query[] download.opensuse.org from 192.168.5.10 = emu-deve..eu (static) If there is interest, I will post the ch

Re: [Dnsmasq-discuss] Show host names in dnsmasq's log

2018-02-04 Thread Simon Kelley
There are two fundamental problems with doing this. 1) The whole architecture of dnsmasq in predicated on not blocking whilst processing a DNS query, except when it's been punted on to an upstream nameserver. Doing the reverse-DNS lookup requires blocking. This problem was solved for DNSSEC (which

[Dnsmasq-discuss] Show host names in dnsmasq's log

2018-02-04 Thread Dominik Derigs, DL6ER
Dear all, I'm trying to show host names (rather than IP addresses, if available) in dnsmasq's log for A and queries, as well as for the forward destinations, i.e. I want to replace Feb  4 18:02:22 dnsmasq[14001]: query[A] clients6.google.com from 10.8.0.2 Feb  4 18:02:22 dnsmasq[14001]: forw