On 07/21/2016 10:10 AM, Beniamino Galvani wrote:
> On Thu, Jul 21, 2016 at 09:54:03AM +0200, Nicolas Bock wrote:
>> How do I check that dnsmasq is using the server? NetworkManager started
>> dnsmasq with
>>
>> /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts
>> --bind-interfaces --pid-file=/run/NetworkManager/dnsmasq.pid
>> --listen-address=127.0.0.1 --cache-size=400 --conf-file=/dev/null
>> --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq
>> --conf-dir=/etc/NetworkManager/dnsmasq.d
>>
>> and in /etc/NetworkManager/dnsmasq.d is only the file I dropped in there
>> with the fallback DNS servers.
> 
> NetworkManager logs should contain messages from dnsmasq and there
> should be lines as:
> 
>   dnsmasq[7295]: using nameserver 192.168.1.1#53
>   dnsmasq[7295]: using nameserver 1.2.3.4#53
> 
> telling you which servers are in use.
> 
Thanks, the servers did show up.

> If you want to be paranoid, you can temporarily add the "log-queries"
> option in a configuration snippet in /etc/NetworkManager/dnsmasq.d and
> restart NM. After that, NM logs will show all the queries sent by
> dnsmasq to each server.
> 
And they also show up in the logs. Thanks for the help!

Nick

> Beniamino
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to