diff --git a/.github/scripts/qnx_tests.sh b/.github/scripts/qnx_tests.sh index fac31a497c..bff1b2de6f 100644 --- a/.github/scripts/qnx_tests.sh +++ b/.github/scripts/qnx_tests.sh @@ -20,9 +20,9 @@ echo " * arestest suite" ./arestest www.google.com --gtest_filter="-*LiveSearchTXT*:*LiveSearchANY*:*ServiceName*" echo "" -echo " * Changing DNS Configuration and rerunning adig and ahost" - -setconf resolve nameserver_1.1.1.1 +nsip=`grep ^nameserver /etc/resolv.conf | head -n 1 | cut -d ' ' -f 2` +echo " * Changing DNS Configuration to use confstr(resolve, ${nsip}) and rerunning adig and ahost" +setconf resolve nameserver_${nsip} rm -f /etc/resolv.conf echo ""