View Single Post
  #7 (permalink)  
Old 04-23-2009, 10:51 AM
dineshsdk dineshsdk is offline
Intermediate Member
 
Posts: 23
Default Here it is

[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.1.83 mail.greenexample.com mail

====================================

[root@mail ~]# cat /etc/resolv.conf
nameserver 192.168.1.120

====================================

[root@mail ~]# dig mail.greenexample.com mx

; <<>> DiG 9.3.3rc2 <<>> mail.greenexample.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10477
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;mail.greenexample.com. IN MX

;; ANSWER SECTION:
mail.greenexample.com. 3600 IN MX 10 mail.greenexample.com.

;; ADDITIONAL SECTION:
mail.greenexample.com. 3600 IN A 192.168.1.83

;; Query time: 38 msec
;; SERVER: 192.168.1.120#53(192.168.1.120)
;; WHEN: Thu Apr 23 03:54:45 2009
;; MSG SIZE rcvd: 71

=============================================

[root@mail ~]# dig mail.greenexample.com any

; <<>> DiG 9.3.3rc2 <<>> mail.greenexample.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62734
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;mail.greenexample.com. IN ANY

;; ANSWER SECTION:
mail.greenexample.com. 3600 IN A 192.168.1.83
mail.greenexample.com. 3600 IN MX 10 mail.greenexample.com.

;; ADDITIONAL SECTION:
mail.greenexample.com. 3600 IN A 192.168.1.83

;; Query time: 21 msec
;; SERVER: 192.168.1.120#53(192.168.1.120)
;; WHEN: Thu Apr 23 03:54:47 2009
;; MSG SIZE rcvd: 87

===============================================



[root@mail ~]# host `hostname`
mail.greenexample.com has address 192.168.1.83
mail.greenexample.com mail is handled by 10 mail.greenexample.com.
Reply With Quote