1 # Checks DNS A record $1 on server $2
2 # Returns exit code of host(1) command: 0 - Ok, 1 - error
3 # (Hint: define value map for 0, 1)
4 UserParameter=host[*],host -W 3 $1 $2 > /dev/null; echo $?