LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2015, 01:05 PM   #1
vrs
LQ Newbie
 
Registered: Jul 2012
Posts: 21

Rep: Reputation: Disabled
Ho to disable 'other' interfaces from updating resolv.conf


Hi All;

I am using Ubuntu 13.10, and on my PC there are two network interfaces "eth0" and "eth1". (DHCP is running on both the interfaces)

For some reason, eth1 keeps updating the resolv.conf and I am finding a way to disable eth1 from updating the resol.conf. I want only eth0 to update the resolv.conf. ( I do not want to debug why eth1 keeps updating the resolv.con)

I googled and the solutions which I found in the net was more on providing static dns server, which I dont prefer or by making resolv.conf read only which will disable eth0 from updating the resolv.conf which I dont want,

Other solution which I thought was deleting domain-name, domain-name-servers, domain-search, ntp-servers, etc from /var/lib/NetworkManager/dhclient-eth6.conf but then I guess I have to do that everytime the system reboots.

Anyone has an elegant suggestions on how to overcome this issue?

Thanking in advance.

~vrs.
 
Old 06-16-2015, 05:54 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,583

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
resolv.conf updates

First, no interface has ever updated a file. Your problem is with the software, most likley NetworkManager. I routinely disable and remove NM on any machine I use as a server, and depend upon the older NEtwork software. (NM works great on laptops, but has ALWAYS caused problems on servers for me. YMMV)

I have no doubt that there is some tuning you can do on NM to correct this behavior. If you do not need NM, I would consider eliminating it. This does require managing the settings yourself, but for most environments that is MUCH less work than constantly correcting NM mistakes.
 
Old 06-17-2015, 06:03 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Agree with wpeckham re NM: its a PITA. I always disable/remove it as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf vignesh_murali2003 Linux - Newbie 3 06-12-2013 03:38 PM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
About /etc/resolv.conf satimis Linux - Networking 10 02-24-2006 09:30 PM
resolv.conf Snump Mandriva 54 10-31-2004 04:16 PM
How to prevent MDK 10 from updating /etc/resolv.conf on every boot Ph0enix2003 Mandriva 0 06-18-2004 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration