Skip to content

Commit

Permalink
add dedicated resolvers test case
Browse files Browse the repository at this point in the history
  • Loading branch information
infosec-it-init authored and blechschmidt committed Mar 20, 2022
1 parent 2421ffc commit 2c3e399
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/multi-lookup-A-ipv4-dedicated-resolver/expected
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.8.8.8
3 changes: 3 additions & 0 deletions tests/multi-lookup-A-ipv4-dedicated-resolver/names.txt
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions tests/multi-lookup-A-ipv4-dedicated-resolver/run.sh
Original file line number Diff line number Diff line change
@@ -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`"

0 comments on commit 2c3e399

Please # to comment.