From 4ae5a567bfa6f4d5f7b33e9ac8ba0d15e4048b52 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 19 Apr 2025 15:41:43 +0200 Subject: [PATCH] Fix. --- bookworm/scripts/setup_server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookworm/scripts/setup_server.sh b/bookworm/scripts/setup_server.sh index 2d4d90d..4ae0bf3 100755 --- a/bookworm/scripts/setup_server.sh +++ b/bookworm/scripts/setup_server.sh @@ -28,7 +28,7 @@ echo " it's: ${EXTERNAP_IP}" if [ ! -z "FQDN" ]; then echo "Ensuring provided FQDN ${FQDN} maps to it …" - IP_BY_DNS=$(getent ahostsv4 | head -1 | cut -d' ' -f1) + IP_BY_DNS=$(getent ahostsv4 "${FQDN}" | head -1 | cut -d' ' -f1) if [ ! "${IP_BY_DNS}" = "${EXTERNAL_IP}" ]; then echo "" abort "DNS mapping provided FQDN '${FQDN}' to ${IP_BY_DNS} rather than this system's external IP ${EXTERNAL_IP}." -- 2.30.2