From 328037d9bcf05b365db20a333f0d6dc29684692a Mon Sep 17 00:00:00 2001 From: Brad House Date: Sat, 14 Dec 2024 20:13:25 -0500 Subject: [PATCH] use same dns server --- .github/scripts/qnx_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ""