/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.10.10.2 mail.domain.com mail
host `hostname`
[root@mail named]# host `hostname`
mail.domain.com has address 64.115.xxx.xxx
[root@mail named]#
dig
[root@mail named]# dig domain.com mx
; <<>> DiG 9.2.4 <<>> domain.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35970
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;domain.com. IN MX
;; ANSWER SECTION:
domain.com. 31065 IN MX 10 mail.domain.com.
;; Query time: 12 msec
;; SERVER: 64.115.0.9#53(64.115.0.9)
;; WHEN: Thu Aug 9 10:52:36 2007
;; MSG SIZE rcvd: 62
[root@mail named]# dig mail.domain.com mx
; <<>> DiG 9.2.4 <<>> mail.domain.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16700
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.domain.com. IN MX
;; Query time: 12 msec
;; SERVER: 64.115.0.9#53(64.115.0.9)
;; WHEN: Thu Aug 9 10:52:42 2007
;; MSG SIZE rcvd: 46
[root@mail named]#
EDIT: replaced actual domain to hide my client info
