aboutsummaryrefslogtreecommitdiff
path: root/scripts/common/30-dns
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/common/30-dns')
-rw-r--r--scripts/common/30-dns3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/common/30-dns b/scripts/common/30-dns
index e2d5ad6..1df12ef 100644
--- a/scripts/common/30-dns
+++ b/scripts/common/30-dns
@@ -3,6 +3,9 @@
# For IDM servers, the resolver is localhost. In that case, we delay copying
# this file until the IDM stack is fully up and running.
if [ "$BOXCONF_HOSTCLASS" = idm_server ]; then
+ if [ "${idm_bootstrap:-}" = true ]; then
+ printf 'nameserver %s\n' "$bootstrap_resolvers" > /etc/resolv.conf
+ fi
return
fi