-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconsider logic around resolv.conf.ipa
and updating nameserver in resolv.conf
.
#644
Comments
One possibility is to remove the logic around creating and following the existence of It would be an incompatible change, so we might want to consider all implications of such change, and how to deprecate the behaviour for easy transition. |
In #646 we document that
to the output both for initial configuration of FreeIPA containers and when they start and we detect internal DNS but not After the three months we would then remove the logic which manipulates the |
Since 357a70b we tried to properly recreate the
/etc/resolv.conf
setups upon container startup, to match the state in whichipa-server-install
left it. In 707f9dd we changed the logic to set nameserver to 127.0.0.1, to use FreeIPA's internal DNS server for resolution, and in 33822d3 we covered the creation of theresolv.conf.ipa
(which indicates that the mechanism should be triggered) withOnce we achieved correct behaviour with read-only root, we documented in 9f49a2f that folks should really be using
--dns=127.0.0.1
when starting the container, as the container itself will not be able to update the/etc/resolv.conf
itself.In #642, a setup with DNS external to the FreeIPA container, together with the use of
IPA_SERVER_IP
environment varialbe (which propagates to/run/ipa/ipa-server-ip
) uncovered that the logic that we use is likely not correct -- if there is no DNS server in the container, we do no want to set thenamesrever 127.0.0.1
. We rely on the proper authentication working against the external DNS server, and with #640 we are able to disable the IP address update, for situation when they are handled completely outside of the logic on the FreeIPA container.We might want to reconsider the logic around out handling of
resolv.conf
, to fix use cases like #642, but possibly to make the setup more predictable in general.The text was updated successfully, but these errors were encountered: