I was playing about with 'dig' showing a friend how it worked when I spotted some odd behaviour with the 'any' type.
I believe that using 'dig any' will get all the record types automatically but that doesn't seem to be happening for some reason.
Here's my output...
; > DiG 9.4.3-P3 > ANY sourceforge.net ;; QUESTION SECTION: ;sourceforge.net. IN ANY ;; ANSWER SECTION: sourceforge.net. 2390 IN A 216.34.181.60 sourceforge.net. 3279 IN NS ns-1.sourceforge.com. sourceforge.net. 3279 IN NS ns-1.ch3.sourceforge.com. sourceforge.net. 3279 IN NS ns-2.ch3.sourceforge.com. ;; ADDITIONAL SECTION: ns-2.ch3.sourceforge.com. 3221 IN A 216.34.181.22
Notice how its missing the MX records? So that I ran "dig MX" and got the MX records just fine. So I decided to run 'dig any' again to check that I wasn't go mad and I got the following results...
;; QUESTION SECTION: ;sourceforge.net. IN ANY ;; ANSWER SECTION: sourceforge.net. 2379 IN A 216.34.181.60 sourceforge.net. 3268 IN NS ns-1.ch3.sourceforge.com. sourceforge.net. 3268 IN NS ns-2.ch3.sourceforge.com. sourceforge.net. 3268 IN NS ns-1.sourceforge.com. sourceforge.net. 3597 IN MX 10 mx.sourceforge.net. ;; ADDITIONAL SECTION: ns-2.ch3.sourceforge.com. 3210 IN A 216.34.181.22 mx.sourceforge.net. 1653 IN A 216.34.181.68
And now the MX records show up!
Any idea what is going on? How do I make it actually show all the records first time?
Thanks!