1,760
edits
Changes
→How to test your secondary DNS ?
= How to test your secondary DNS ?=
<pre>
for test_item in $test_itemsdo PRI_ANS=$(nslookup -query=A $test_item $pri_dns_ip | grep -v $pri_dns_ip | grep Address | awk '{print $2}') #cho $PRI_ANS SEC_ANS=$(nslookup -query=A $test_item $pri_dns sec_dns_ip | grep -v $pri_dns sec_dns_ip | grep Address | awk '{print $2}') echo $PRI_ANS $SEC_ANS [ "$SEC_ANS" = "$PRI_ANS" ] && echo matchdone
</pre>