From bf41bf67d73263343a39e10cf8118f7efff69088 Mon Sep 17 00:00:00 2001
From: 1000TurquoisePogs <sgrady@rocketsoftware.com>
Date: Tue, 14 Feb 2023 04:45:24 -0500
Subject: [PATCH] Update app-server.sh

Signed-off-by: 1000TurquoisePogs <sgrady@rocketsoftware.com>
---
 bin/app-server.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/app-server.sh b/bin/app-server.sh
index 8393fd3..52c62b3 100755
--- a/bin/app-server.sh
+++ b/bin/app-server.sh
@@ -198,11 +198,9 @@ if [ -n "${ZOWE_INSTANCE}" ]; then
   fi
 fi
 
-ZLUX_DNS_ORDER=
+ZLUX_DNS_ORDER="--dns-result-order=ipv4first"
 if [ "$ZWE_components_app_server_dns_lookupOrder" = "ipv6" ]; then
   ZLUX_DNS_ORDER="--dns-result-order=verbatim"
-else
-  ZLUX_DNS_ORDER="--dns-result-order=ipv4first"
 fi
 
 { __UNTAGGED_READ_MODE=V6 _BPX_JOBNAME=${ZOWE_PREFIX}DS1 ${NODE_BIN} --harmony ${ZLUX_DNS_ORDER} ${ZOWE_LIB_DIR}/${ZLUX_SERVER_FILE} --config="${CONFIG_FILE}" "$@" 2>&1 ; echo "Ended with rc=$?" ; } | tee $ZLUX_NODE_LOG_FILE