11 lines
206 B
Plaintext
11 lines
206 B
Plaintext
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
dig miek.nl | grep AAAA | sed 's/[ \t]*//g' > $$.digout
|
||
|
|
diff -u test3.querygood $$.digout
|
||
|
|
if [ $? -ne 0 ]; then
|
||
|
|
echo "Query failed"
|
||
|
|
else
|
||
|
|
echo "Query matched"
|
||
|
|
fi
|
||
|
|
rm -f $$.digout
|