Sunday, April 17, 2005

Check mx records of a domain

dig domain mx

e.g.:

[root@server /home]# dig socal.rr.com mx

; <<>> DiG 9.1.0 <<>> socal.rr.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21901
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 2, ADDITIONAL: 6

;; QUESTION SECTION:
;socal.rr.com. IN MX

;; ANSWER SECTION:
socal.rr.com. 3600 IN MX 20 kcmx02.mgw.rr.com.
socal.rr.com. 3600 IN MX 30 orange.mgw.rr.com.
socal.rr.com. 3600 IN MX 10 lamx01.mgw.rr.com.
socal.rr.com. 3600 IN MX 10 lamx02.mgw.rr.com.
socal.rr.com. 3600 IN MX 10 lamx03.mgw.rr.com.
socal.rr.com. 3600 IN MX 20 kcmx01.mgw.rr.com.

;; AUTHORITY SECTION:
socal.rr.com. 3600 IN NS dns-sec-01.socal.rr.com.
socal.rr.com. 3600 IN NS dns-pri-01.socal.rr.com.

;; ADDITIONAL SECTION:
lamx01.mgw.rr.com. 75198 IN A 66.75.160.12
lamx02.mgw.rr.com. 75198 IN A 66.75.160.13
lamx03.mgw.rr.com. 75198 IN A 66.75.160.11
kcmx01.mgw.rr.com. 75197 IN A 24.94.163.190
kcmx02.mgw.rr.com. 75198 IN A 24.94.165.190
dns-pri-01.socal.rr.com. 2514 IN A 66.75.160.39

;; Query time: 97 msec
;; SERVER: 192.168.100.26#53(192.168.100.26)
;; WHEN: Fri Oct 10 15:27:15 2003
;; MSG SIZE rcvd: 318

No comments: