Query the local DNS server
dig @localhost domain
Reverse resolution query on local DNS server
dig @localhost -x ip
Query MX record from 8.8.8.8 DNS server
dig @8.8.8.8 -t MX domain
Query all records
dig -t any domain
Query the local DNS server
dig @localhost domain
Reverse resolution query on local DNS server
dig @localhost -x ip
Query MX record from 8.8.8.8 DNS server
dig @8.8.8.8 -t MX domain
Query all records
dig -t any domain