diff --git a/tests/multi-lookup-A-ipv4-dedicated-resolver/expected b/tests/multi-lookup-A-ipv4-dedicated-resolver/expected new file mode 100644 index 0000000..ae1e7ed --- /dev/null +++ b/tests/multi-lookup-A-ipv4-dedicated-resolver/expected @@ -0,0 +1,3 @@ +google-public-dns-a.google.com. 8.8.4.4:53 +google-public-dns-b.google.com. 1.1.1.1:53 +one.one.one.one. 8.8.8.8:53 \ No newline at end of file diff --git a/tests/multi-lookup-A-ipv4-dedicated-resolver/google-dns.txt b/tests/multi-lookup-A-ipv4-dedicated-resolver/google-dns.txt new file mode 100644 index 0000000..701e77e --- /dev/null +++ b/tests/multi-lookup-A-ipv4-dedicated-resolver/google-dns.txt @@ -0,0 +1 @@ +8.8.8.8 diff --git a/tests/multi-lookup-A-ipv4-dedicated-resolver/names.txt b/tests/multi-lookup-A-ipv4-dedicated-resolver/names.txt new file mode 100644 index 0000000..40e3c72 --- /dev/null +++ b/tests/multi-lookup-A-ipv4-dedicated-resolver/names.txt @@ -0,0 +1,3 @@ +one.one.one.one +google-public-dns-a.google.com 0.0.0.0 0.0.0.0 8.8.4.4 +google-public-dns-b.google.com 0.0.0.0 0.0.0.0 1.1.1.1 diff --git a/tests/multi-lookup-A-ipv4-dedicated-resolver/run.sh b/tests/multi-lookup-A-ipv4-dedicated-resolver/run.sh new file mode 100755 index 0000000..1ebd1d7 --- /dev/null +++ b/tests/multi-lookup-A-ipv4-dedicated-resolver/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +DIR=$(dirname "$0") + +"$DIR"/../../bin/massdns --extended-input -c 50 -r "$DIR"/google-dns.txt --quiet -o J "$DIR"/names.txt | jq -r '(.name + " " + .resolver)' | sort | grep -E -q "`cat $DIR/expected`"