]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add information-gathering about DNS resolvers configured to t_client.sh(.in)
authorGert Doering <gert@greenie.muc.de>
Mon, 5 May 2025 14:22:16 +0000 (16:22 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 5 May 2025 14:54:07 +0000 (16:54 +0200)
commitb4e31e57bc69819e6ea61ea1bc08ad199b2be272
tree0b2b282594382c1d2f3581322a014a84a6bc7139
parenteef30e6e72d6bb36c0c0ec29a1219e7d54c866eb
Add information-gathering about DNS resolvers configured to t_client.sh(.in)

With the patchsets to add DNS configuration on Unix+MacOS systems, and
the addition of test stanzas to excercise and verify the OS specific
"dns-updown" script, it becomes important to trace test failures
("did it not ping because the DNS was not installed, or did something
else fail?") and also verify that DNS config is properly restored at
the end of each test.

Linux is probed with "resolvectl status", if available, and
"cat resolv.conf" if not.  MacOS uses scutil --dns.

All other platforms use "cat resolv.conf" for now (because even if
"a tool to maintain DNS config" is available, in the end resolv.conf
is always where the final config lands).

Include a bit of restructuring to handle linux iproute2 testing in the
"Linux" branch, and make the control flow more amenable to having a
second case / esac block.

Change-Id: I9cae7314203424e4a604073c5445559260172477
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20250505142224.24935-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31568.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_client.sh.in