Codebase list getdns / 3ec91de
Prepare to release 1.5.2-5 to unstable * d/t/control, d/t/stubby: - [from ubuntu] Skip test if we don't have internet connection. Roger Shimizu 3 years ago
3 changed file(s) with 23 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 getdns (1.5.2-5) unstable; urgency=medium
1
2 * Team upload.
3 * d/t/control, d/t/stubby:
4 - [from ubuntu] Skip test if we don't have internet connection.
5
6 -- Roger Shimizu <rosh@debian.org> Thu, 09 Jul 2020 23:53:35 +0900
7
08 getdns (1.5.2-4) unstable; urgency=medium
19
210 * Team upload.
00 Tests: stubby
11 Depends: stubby, knot-dnsutils, procps
2 Restrictions: allow-stderr
2 Restrictions: allow-stderr, skippable
00 #!/bin/bash
1
2 # verify we have an internet connection before testing, by TLS querying
3 # one of the default upstream servers in our /etc/stubby/stubby.yml
4 UPSTREAM=$(grep -m1 -E '^[^#].*address_data: *([0-9]+\.){3}[0-9]+' /etc/stubby/stubby.yml | cut -d ':' -f 2)
5 if [[ -z $UPSTREAM ]]; then
6 echo "no upstream nameserver found in /etc/stubby/stubby.yml"
7 exit 77
8 fi
9 NET_TEST=$(kdig +short +tls @${UPSTREAM## } getdnsapi.net)
10 if [[ $NET_TEST != 185.49.141.37 ]]; then
11 # Couldn't reach upstream nameserver, skip the test
12 exit 77
13 fi
14
115 set -e
216
317 getpid() {