[root@mail /]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.21.75 mail.alghurair.com mail
[root@mail /]# dig alghurair.com mx
; <<>> DiG 9.2.4 <<>> alghurair.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15107
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;alghurair.com. IN MX
;; AUTHORITY SECTION:
alghurair.com. 86400 IN SOA alghurair.com. root.localhost.alghurair.com. 11 28800 7200 604800 86400
;; Query time: 4 msec
;; SERVER: 192.168.20.15#53(192.168.20.15)
;; WHEN: Tue Jun 24 13:57:53 2008
;; MSG SIZE rcvd: 82
[root@mail /]# dig mail.alghurair.com
; <<>> DiG 9.2.4 <<>> mail.alghurair.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54118
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.alghurair.com. IN A
;; ANSWER SECTION:
mail.alghurair.com. 86400 IN A 192.168.20.21
;; AUTHORITY SECTION:
alghurair.com. 86400 IN NS dc.alghurair.com.alghurair.com.
;; Query time: 6 msec
;; SERVER: 192.168.20.15#53(192.168.20.15)
;; WHEN: Tue Jun 24 13:58:24 2008
;; MSG SIZE rcvd: 83
[root@mail /]# host `hostname`
mail.alghurair.com has address 192.168.20.21