Ho to disable 'other' interfaces from updating resolv.conf
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.