conf/dns.conf
author Chris Jones <chris@sysadminchris.com>
Mon, 14 Jan 2013 17:18:11 -0500
changeset 21 14a903cf9505
parent 9 8c143dccc517
permissions -rw-r--r--
Added ie and us support. Cleaned up awk and cut commands not being called from variables.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
8c143dccc517 conf/dns.conf: check A records/DNS server response
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     1
# Checks DNS A record $1 on server $2
8c143dccc517 conf/dns.conf: check A records/DNS server response
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     2
# Returns exit code of host(1) command: 0 - Ok, 1 - error
8c143dccc517 conf/dns.conf: check A records/DNS server response
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     3
# (Hint: define value map for 0, 1)
8c143dccc517 conf/dns.conf: check A records/DNS server response
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     4
UserParameter=host[*],host -W 3 $1 $2 > /dev/null; echo $?