Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jun 14, 2015 1:58 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
On my Ubuntu 14.04 VPS, dnsmasq keeps changing my nameservers under /run/resolv.conf when it renews leases every few hours. I had installed dnsmasq as part of my OpenVPN setup following a Linode doc.

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?

_________________
http://www.ingber.com


Top
   
PostPosted: Mon Jun 22, 2015 1:03 am 
Offline
Junior Member
User avatar

Joined: Mon Jun 22, 2015 12:55 am
Posts: 30
Website: http://iserversupport.com/
Please have a look at the cronjobs, maybe there is some cron set to revert them back to old nameservers

_________________
Server Management with 24x7 monitoring
http://iserversupport.com/on-demand/


Top
   
PostPosted: Mon Jun 22, 2015 10:07 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
Hi. Yes, that was looked at early after I saw this happening. I see nothing under /var/spool/cron/crontabs/root that would do this. I see no other crontab files under /var/spool/cron/ .

I also tried:
:/etc# grep -i dns cron*
:/etc# grep -i dns cron*/*
:/etc# grep -i dns cron*/*/*
but nothing came up.

Thanks.

Lester

_________________
http://www.ingber.com


Last edited by ingber on Mon Jun 22, 2015 10:23 pm, edited 1 time in total.

Top
   
PostPosted: Mon Jun 22, 2015 10:20 pm 
Offline
Senior Newbie

Joined: Mon Dec 12, 2011 2:16 am
Posts: 5
Location: United States
Take a look in the /etc/cron.* directories?

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)


Top
   
PostPosted: Mon Jun 22, 2015 10:51 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
Hi. yes, I believe I did that (just checked again).

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

_________________
http://www.ingber.com


Top
   
PostPosted: Tue Jun 23, 2015 10:37 am 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
My latest changes seems to have solved the specific problem. Now I have to see if this wrecked anything else.

_________________
http://www.ingber.com


Top
   
PostPosted: Tue Jun 23, 2015 9:48 pm 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
Nope. I still am getting many lines in /var/log/apache2/other_vhosts_access.log like:
::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)"

_________________
http://www.ingber.com


Top
   
PostPosted: Thu Jun 25, 2015 10:30 am 
Offline
Senior Member

Joined: Sat Oct 23, 2010 12:56 pm
Posts: 73
Website: http://www.ingber.com
Location: Oregon
The 403 errors seem to have been due to
<IfModule mod_cloudflare.c>
...
</IfModule>
coming after
</VirtualHost>
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.

_________________
http://www.ingber.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group