Open main menu

CDOT Wiki β

Changes

OPS335 A2 Summer 2015 Tips

154 bytes added, 10:18, 31 July 2015
How to test your secondary DNS ?
SEC_ANS=$(nslookup -query=A $test_item $sec_dns_ip | grep -v $sec_dns_ip | grep Address | awk '{print $2}')
echo "Testing item: $test_item" echo "Test Result from Primary DNS server: $pri_dns_ip -> $PRI_ANS " echo "Test Result from Secondary DNS server: $sec_dns_ip -> $SEC_ANS"
[ "$SEC_ANS" = "$PRI_ANS" ] && echo match
1,760
edits