Unit Testing DNS Data
Built-in Tests
External tests
dnscontrol print-ir --out foo.json --prettyCOUNTMX=$(jq --raw-output <foo.json '.domains[] | select(.name == "stackex.com") | .records[] | select(.type == "MX") | .target' | wc -l)
echo COUNT=:"$COUNTMX":
if [[ "$COUNTMX" -eq "5" ]]; then
echo GOOD
else
echo BAD
fiFuture directions
Last updated