You are not logged in.
So, I travelled to my parents house in a far away city where the DNS server ping is something around 130ms.
Because of that I decided to install dnsmasq and configure it to be a DNS cache to my computer.
Read the wiki about it, installed, configured, read some duckduckgo's link and figured out its working because of:
ricardo@note:~$ dig archlinux.org | grep "Query time"
;; Query time: 390 msec
ricardo@note:~$ dig archlinux.org | grep "Query time"
;; Query time: 0 msec
But it left me some doubts i'd like to figure out so I can know how to fix it if some bugs appears in the future.
When I call "systemctl status NetworkManager -l" it tells me that:
dnsmasq[2548]: using nameserver 192.168.0.1#53
dnsmasq[2548]: ignoring nameserver 127.0.0.1 - local interface
dnsmasq[2548]: cleared cache
When i read this "ignoring local interface" thing i thought it wasn't working, but it is and i dont know why, so, why? Maybe its because of my moden's cache, is it?
There is this "cleared cache" line too, is there something i can do so it doesn't clear its cache everytime it starts the service?
The configurations is all in /etc/NetworkManager/dnsmasq.d/ in archives called: cache, ipv6_listen.conf and listenaddress. This files contain this following lines:
cache-size=1000
listen-address=::1
listen-address=127.0.0.1
NetworkManager.conf is just:
[main]
plugins=keyfile
dhcp=dhclient
dns=dnsmasq
And dhclient.conf is:
send host-name = pick-first-value(gethostname(), "ISC-dhclient");
prepend domain-name-servers 127.0.0.1;
So, can you guys help me?
Thanks.
Offline