One tool I’m used to having without installing (it’s included by default in FreeBSD) is Dig (which is short for Domain Information Groper). Dig is a really handy tool for checking and troubleshooting DNS related issues once you learn how to use it. For instance, it makes it easy to see how your MX records are resolving:
- # dig google.com mx
- ; <<>> DiG 9.3.2-P2.1 <<>> google.com mx
- ;; global options: printcmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41334
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
- ;; QUESTION SECTION:
- ;google.com. IN MX
- ;; ANSWER SECTION:
- google.com. 10212 IN MX 10 smtp3.google.com.
- google.com. 10212 IN MX 10 smtp4.google.com.
- google.com. 10212 IN MX 10 smtp1.google.com.
- google.com. 10212 IN MX 10 smtp2.google.com.
- ;; Query time: 1 msec
- ;; SERVER: 126.96.36.199#53(188.8.131.52)
- ;; WHEN: Sat Nov 8 02:56:08 2008
- ;; MSG SIZE rcvd: 116
Luckily this is easy to install, just not terribly intuitive or easy to find as it’s not a package known as dig:
- # sudo apt-get install dnsutils
That’s pretty much it– you should now be able to use dig!