Bug 182011
Summary: | [enh] Allow custom DNS servers and search domains | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Todd Gee <redhat.com> |
Component: | NetworkManager | Assignee: | Dan Williams <dcbw> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7 | CC: | dcestari, djuran, luis6674 |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-04-10 20:02:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 441923 |
Description
Todd Gee
2006-02-19 00:21:45 UTC
See also bug 165711 -- another resolve.conf issue related to NetworkManager see also bug 158495 -- but this one talks about lack of options other than DHCP (which, I believe, is a known and understood limitation of NM at this time.) Yes, NM takes over resolv.conf at this time. While this may get fixed in the future, it's more of an enhancement request. Part of the problem here is that when NM gets new DNS server information for, ie, your VPN connection, what should it do with that? If it can't touch /etc/resolv.conf, then you can't use your VPN connection... Anyway, is the issue that you'd like to use a specific set of DNS servers rather than what DHCP provides? well, in my particular case, I run my own name server as the one that DHCP gives me access too doesn't work very well. (and running my own name server is just faster overall -- especially after the cache is built up...) I could see a configuration dialog (that NM kinda' lacks at this point so there wouldn't be a great place to put it) with an option "take DNS from DHCP". This could be toggled on/off as necessary. Or, maybe it'd be appropiate to add this to the dialog that is shown on "Connect to other wireless network". this should probably be an option for wired networks as well... I can see the difficulty in managing this bit -- in some cases, it needs to be set; but in others, it's not appropiate... oops, I think I accidently changed the enhancement flag... changing back. Not sure that this is the best solution, but you can probably use NetworkManagerDispatcher to use your preferred nameserver. Make sure the service is running, and add a shell script to your /etc/NetworkManager.d directory (you might need to create it) which will get called when your interface is brought up or down. Just in case anyone reads this thread, the directory given in comment 6 is (directly above) is incorrect (for the Fedora version anyway). The correct NetowkrManagerDispatcher scripts directory should be /etc/NetworkManager/dispatcher.d/ I created a script that updates the resolve.conf file and placed it in this directory and it worked like a champ -- thanks for the tip. This enhancement should be addressed sometime -- just to add an additional feature into the system... Thanks all. This report targets the FC3 or FC4 products, which have now been EOL'd. Could you please check that it still applies to a current Fedora release, and either update the target product or close it ? Thanks. This is still the case in Fedora 7 (which I finally got around to installing). There is no way in the current release to tell NetworkManager to use a preferred name server, or to not use the DNS settings from the DHCP server reply. I can confirm that this happens in Fedora 8 too. I configure my network with a static IP and not via DHCP, yet Network Manager insists in overwriting my resolv.conf. I haven't seen this behaviour in other distributions (with Network Manager enabled). Only Fedora. So I'm not sure it's only Network Manager to blame. *** Bug 426097 has been marked as a duplicate of this bug. *** *** Bug 177307 has been marked as a duplicate of this bug. *** *** Bug 426097 has been marked as a duplicate of this bug. *** This should be fixed if using system connections in rawhide or latest f8-updates-testing. Putting SEARCHES and DNS1/DNS2/DNS3 into the ifcfg files will make NM use those settings. |