Bug 304611
Summary: | resolv.conf hardwired in /sbin/dhclient-script and network-functions | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Thomas Schweikle <tschweikle> | ||||
Component: | initscripts | Assignee: | Lukáš Nykrýn <lnykryn> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 24 | CC: | cnoffsin, initscripts-maint-list, lnykryn, maurizio.antillon, opensource, rvokal, triage | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-08-08 11:38:48 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: | |||||||
Attachments: |
|
Description
Thomas Schweikle
2007-09-25 08:31:38 UTC
You can already provide your own DNS override via /etc/dhclient.conf. Use the supersede domain-name and supersede domain-name-servers directives in dhclient.conf and you can override whatever the DHCP lease provides. See dhclient.conf(5) for more details. No, no, no. That is not the same! If I superseed domain-name-servers, I provide a *fixed* set of domain name servers. If I superseed domain-name, I provide a *fixed* domain name. This fixed name is then entered into "/etc/resolv.conf". But what, when the provider changes the domain names, assuming all users use dhcp for getting there domain name servers (and in some cases there domain name)? The superseeded domain name servers get further entered into resolv.conf making you wonder why no dns query does give back the an address for say "redhat.com". Again: assume you are running your own dns server, assume this being dnsmasq; assume further your provider gives back 10.0.0.1 and 10.0.0.2 for his upstream dns servers and "example.home" for the domain name. Now resolv.conf is set to search example.home nameserver 10.0.0.1 nameserver 10.0.0.2 The system will query the providers dns, but not your own, localy running dns. This would only be done if resolv.conf holding search example.home nameserver 127.0.0.1 superseeding domain-name-servers could overcome this problem, but in this case: what servers should your local dns query for names not known to it? OK, I can copy the setup resolv.conf to a resolv.localdns and make my local dns read this copied version, setting resolv.conf to point to my localy running dns. This will work --- until the lease is renewed. After that my resolv.conf is *overwritten* with the data given by the provider, rendering my local dns unused again! If my provider handles me a new set of dns servers with every renew of the lease, I will have to copy resolv.conf every time I receive a new lease. If this is done all 900 seconds, you are in some trouble. But this is normal in a variety of networks, notably WLAN. Superseeding domain-name-servers and domain-name does not help out. The only thing helping would be to write what the provider gives back for domain-name- servers and domain-name to an other file than "/etc/resolv.conf". AFAIK there is no way doing this with the provided scripts (and there is no way setting this up from dhclient.conf). These *will* in all cases write to "/etc/ resolv.conf", making a local dns useless if a lease is renewed within a short period of time. The change is simple: make the file resolve data is written to configurable. I provided diffs doing this, solving the problem. Provide unified diffs (diff -u), not contextual diffs. Attach them to the bug report. Created attachment 225341 [details]
Make file to which "/etc/resolv.conf" is written a configurable option.
The unified diff, as requested.
Reassigning to initscripts, which is the component that owns /etc/sysconfig/network-scripts/network-functions (see rpm -qf). This message is a reminder that Fedora 7 is nearing the end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 7. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '7'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 7's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 7 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. If possible, it is recommended that you try the newest available Fedora distribution to see if your bug still exists. Please read the Release Notes for the newest Fedora distribution to make sure it will meet your needs: http://docs.fedoraproject.org/release-notes/ The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This is the same for Fedora 8 and 9. This message is a reminder that Fedora 9 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 9. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '9'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 9's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 9 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping I really don't think this is appropriate for Fedora - this is far outside of the normal usage cases.b Could be quite common if you are using virtualisation technologies like VMware, Virtual Box or Qemu. Your local host assigns via DHCP local addresses to your virtual machines. Quite a bit a buggy way to assign static addresses to all VMs you create on the fly. Would be nice to have some way to configure a local DNS to resolve these local VMs to have them accessible via your host only network with names, not numbers! At the moment configuring this is for freaks and cracks really knowing what they are doing. But not for the average user. Since Linux likes to go for the average user and the changes involved are easy to make --- why not?? (In reply to comment #9) > I really don't think this is appropriate for Fedora - this is far outside of > the normal usage cases.b Please reconsider this. I have the same problem. I have a local dnsmasq and bind for my virtual machines, but my "ISP" forces me to use dhcp. Therefore I, too, need a way to get the dhcp-data, but not have dhclient mess with /etc/resolv.conf. This message is a reminder that Fedora 12 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 12. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '12'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 12's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 12 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 12 changed to end-of-life (EOL) status on 2010-12-02. Fedora 12 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. dhclient-4.2.0-16.P2.fc14 Hey Till Maas if you want a workaround, just set resolv.conf the way you want it and make it immutable: chattr +i /etc/resolv.conf then if you need to edit it to unlock it: chattr -i /etc/resolv.conf This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping still a problem in current Rawhide Can't you just set PEERDNS=no in your ifcfg files? This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |