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

Dominik DL6ER dl6er at dl6er.de
Mon Feb 5 13:33:03 GMT 2018


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
host name to the cache where it will then be available afterwards. I
already use some pthreads for things that should not block so I wouldn't
mind to run the PTRs from therein, where it wouldn't be blocking anything.

Best regards,
Dominik


On 05.02.2018 14: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 =
> cpu-video (dhcp)
>
>  
>
> or
>
>  
>
> query[AAAA] download.opensuse.org from 192.168.5.10 = emu-deve.xxxx.eu
> (static)
>
>  
>
> If there is interest, I will post the changes.
>
>  
>
> The modification just loops through the cache table and gets the names
> from there - local query originators only of course, these being
> either static or dhcp assigned, can be found in there.
>
>  
>
> best regards,
> Michael Stiemke (mailto:ms at ansynova.com)
>
> **
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180205/336acdd7/attachment.html>


More information about the Dnsmasq-discuss mailing list