Skip to content

Commit

Permalink
The latest FreeIPA seems to configure named instead of named-pkcs11.
Browse files Browse the repository at this point in the history
Addressing master container not using its own DNS for resolutions,
causing for example replica setups to fail because the master
cannot resolve their hostnames for connection check.
  • Loading branch information
adelton committed Feb 11, 2021
1 parent 74e743b commit 632d3b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipa-server-configure-first
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if [ "$1" == update-self-ip-address ] ; then
exec >> /var/log/ipa-server-run.log 2>&1
echo "$(date) $0 $@"

if systemctl is-active -q named-pkcs11 || [ -f /run/ipa/ipa-server-ip ] ; then
if systemctl is-active -q named named-pkcs11 || [ -f /run/ipa/ipa-server-ip ] ; then
# Wait until DNS is up and running and resolving
while ! host -t A $HOSTNAME > /dev/null ; do
sleep 1
Expand Down Expand Up @@ -212,7 +212,7 @@ else
exit
fi

if systemctl is-active -q named-pkcs11 || [ -f /run/ipa/ipa-server-ip ] ; then
if systemctl is-active -q named named-pkcs11 || [ -f /run/ipa/ipa-server-ip ] ; then
cp -f /etc/resolv.conf /data/etc/resolv.conf.ipa
while ! host -t A $HOSTNAME > /dev/null ; do
sleep 1
Expand Down

0 comments on commit 632d3b3

Please sign in to comment.