]> Sergey Matveev's repositories - sgmon.git/blob - helper/dns
Initial commit
[sgmon.git] / helper / dns
1 #!/bin/sh -e
2
3 proto=$1
4 srv=$2
5 shift
6 shift
7
8 drill -${proto} @$srv $@ >state/drill-out
9 grep -q "rcode: NOERROR" state/drill-out || {
10     cat state/drill-out
11     exit 1
12 }