Univention Bugzilla – Full Text Bug Listing |
Summary: | Allow a way to choose what to set when receiving multiple DHCP options | ||
---|---|---|---|
Product: | UCS | Reporter: | Daniel Orrego <orrego> |
Component: | Network | Assignee: | UCS maintainers <ucs-maintainers> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | CC: | gohmann, hahn |
Version: | UCS 3.2 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Feature Request | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Bug Depends on: | 37689 | ||
Bug Blocks: | 38316 |
Description
Daniel Orrego
2015-06-04 18:55:31 CEST
There already are the /etc/dhcp/dhclient-enter-hooks.d/ and /etc/dhcp/dhclient-exit-hooks.d/ directories, which can contain scripts, which are _sourced_ by /sbin/dhclient-script. Those scripts can modify all environment variables of the process and thus influence what /sbin/dhclient-script does. Cool. Thank you. That should be enough. I will do some tests... After some tests I have found that UCS already includes a hook-script for /etc/resolv.conf in /etc/dhcp/dhclient-exit-hooks.d/resolvconf The script works well for domain controllers, but it ignores the different UCR variables (nameserver*, dns/search, etc.) when the server is a memberserver! Currently, an external DHCP server overrides /etc/resolv.conf on joined UCS memberservers. I don't have a patch, I am using a second script, that runs after the default one, as a workaround to commit /etc/resolv.conf from UCR; but I still think that this is a regression and the default hook-script should include the proper configuration for memberservers. (In reply to Daniel Orrego from comment #3) > After some tests I have found that UCS already includes a hook-script for > /etc/resolv.conf in /etc/dhcp/dhclient-exit-hooks.d/resolvconf > > The script works well for domain controllers, but it ignores the different > UCR variables (nameserver*, dns/search, etc.) when the server is a > memberserver! > > Currently, an external DHCP server overrides /etc/resolv.conf on joined UCS > memberservers. > > I don't have a patch, I am using a second script, that runs after the > default one, as a workaround to commit /etc/resolv.conf from UCR; but I > still think that this is a regression and the default hook-script should > include the proper configuration for memberservers. I'm not sure. I guess in a lot of other scenarios you will use the given nameserver. Maybe we can add a SDB article for you scenario? Playing games with multiple DHCPd seems dangerous: DHCP leases are exclusive and are NOT merged. If you need to overwrite certain setting (DNS servers), define a UCR policy to set those value via the LDAP layer. |