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.
There is a file /etc/resolv.conf, and in that file are two nameservers which get accessed by internet applications. I know what two nameservers will make my applications successful in obtaining data from the web. So I set the file appropriately and everything works.
Then I reboot the computer and something rewrites it with two different nameservers. And my web pages time out.
I think I have gone through several different mysterious "somethings" since I've had this problem through several Ubuntu updates. I thought the culprit was called network-manager before, but I don't seem to have a network-manager now. There maybe twelve different applications all waiting their turn to helpfully rewrite resolv.conf for me.
So... I just want them to leave me alone.
Ubuntu 9.04
Qwest DSL
integrated MCP61 Ethernet card
(Is there other system information that might be relevant here?)
There is a file /etc/resolv.conf, and in that file are two nameservers which get accessed by internet applications. I know what two nameservers will make my applications successful in obtaining data from the web. So I set the file appropriately and everything works.
Then I reboot the computer and something rewrites it with two different nameservers. And my web pages time out.
I think I have gone through several different mysterious "somethings" since I've had this problem through several Ubuntu updates. I thought the culprit was called network-manager before, but I don't seem to have a network-manager now. There maybe twelve different applications all waiting their turn to helpfully rewrite resolv.conf for me.
So... I just want them to leave me alone.
Ubuntu 9.04
Qwest DSL
integrated MCP61 Ethernet card
(Is there other system information that might be relevant here?)
I think the "culprit" is your ISP acting through your router/modem. I had a similar problem (I wanted to use open dns servers and not the one supplied by my ISP). I solved it by installing the dhcp3-client and dhcp3-common packages. This will create an /etc/dhcp3/dhclient.conf file. As root or using sudo add the following line to this file:
That's not fixing it. Maybe it's trying, but something else is overcoming it? (Or did I miss a step? I can see dhclient running.)
/etc/resolv.conf is being rewritten by NetworkManager according to the first line of the file, which executes scripts in /etc/NetworkManager/dispatcher.d/, which currently contains 01ifupdown. 01ifupdown calls ifupdown scripts in /etc/network/, and so on and so on.
That's not fixing it. Maybe it's trying, but something else is overcoming it? (Or did I miss a step? I can see dhclient running.)
/etc/resolv.conf is being rewritten by NetworkManager according to the first line of the file, which executes scripts in /etc/NetworkManager/dispatcher.d/, which currently contains 01ifupdown. 01ifupdown calls ifupdown scripts in /etc/network/, and so on and so on.
You have to actually run
Code:
sudo dhclient
to activate things (and possibly also stop and start your network connection). cheers,
jdk
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.