Notes

Check DNS with dig

#!/bin/bash
# checkdns example.com
domain=$1
# Google Public DNS
dig @8.8.8.8 $domain | grep -a1 'ANSWER SECTION'
dig @8.8.4.4 $domain | grep -a1 'ANSWER SECTION'
# OpenDNS
dig @208.67.220.220 $domain | grep -a1 'ANSWER SECTION'
dig @208.67.222.222 $domain | grep -a1 'ANSWER SECTION'