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

Michael Stiemke ms at ansynova.com
Mon Feb 5 13:03:00 GMT 2018


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)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180205/40724af1/attachment.html>


More information about the Dnsmasq-discuss mailing list