dnsmasq keeps changing nameservers?
I now regularly check and force Google DNS into the /etc/dnsmasq.conf, /run/dnsmasq, /run/resolvconf/, /run/resolvconf/interface/, /etc/resolvconf/resolv.conf.d/, /var/lib/dhcp/ files, etc. Note that
/etc/resolv.conf -> ../run/resolvconf/resolv.conf.
I have checked a lot of posting that claim to control this, but inevitably there are more recent postings debunking those claims.
dnsmasq keeps changing my Google DNS to the Linode nameservers?
7 Replies
I also tried:
:/etc# grep -i dns cron*
:/etc# grep -i dns cron/
:/etc# grep -i dns cron//*
but nothing came up.
Thanks.
Lester
Alternatively, manually define nameservers in /etc/network/interfaces, 'auto eth0; iface eth0 inet dynamic' add 'dns-nameservers 8.8.8.8, 8.8.4.4'.
(Alternatively, remove the symlink /etc/resolv.conf, and make a new file)
I just now made a couple of changes:
/etc/dnsmasq.conf (set no-poll)
/etc/default/dnsmasq (set IGNORE_RESOLVCONF=yes and ENABLED=0)
I don't think changing the symlink will help as OpenVPN looks at /run/dnsmasq/resolv.conf , even if /run/resolvconf/resolv.conf is set as I wish.
I'm trying to do gradual minimal changes to not break OpenVPN.
I'll check /var/log/syslog again tomorrow.
Thanks.
Lester
::1 - - [23/Jun/2015:18:42:53 -0700] "OPTIONS * HTTP/1.0" 403 0 "-" "Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f (internal dummy connection)"
coming after
in my ssl.conf file. Once this was fixed, I do not have the 403 problems.
The dnsmasq behavior has not been fixed. I have to poll several files regularly to "correct" my nameservers.