blob: a2f388e3178ab236a932482dfbe29a36ef58b0e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
set -e
expected=93.184.216.34
answer=$(kdig +short +tls-ca +tls-hostname=dns.cmrg.net @dns.cmrg.net example.org)
if [ "$answer" != "$expected" ]; then
printf "expected: %s\ngot: %s\n" "$expected" "$answer" >&2
kdig +tls-ca +tls-hostname=dns.cmrg.net @dns.cmrg.net example.org
fi
|