diff --git a/bin/app-server.sh b/bin/app-server.sh index 682eb6d6..52c62b37 100755 --- a/bin/app-server.sh +++ b/bin/app-server.sh @@ -198,5 +198,10 @@ if [ -n "${ZOWE_INSTANCE}" ]; then fi fi -{ __UNTAGGED_READ_MODE=V6 _BPX_JOBNAME=${ZOWE_PREFIX}DS1 ${NODE_BIN} --harmony ${ZOWE_LIB_DIR}/${ZLUX_SERVER_FILE} --config="${CONFIG_FILE}" "$@" 2>&1 ; echo "Ended with rc=$?" ; } | tee $ZLUX_NODE_LOG_FILE +ZLUX_DNS_ORDER="--dns-result-order=ipv4first" +if [ "$ZWE_components_app_server_dns_lookupOrder" = "ipv6" ]; then + ZLUX_DNS_ORDER="--dns-result-order=verbatim" +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