31
Network 討論版 / Mail 收發與網域設定觀念問題
« 於: 2007-10-25 09:07 »
以下才是正確的設法,但是很好奇,為什麼我們用 @mails.aaa.com.tw 也可以正常收發信件?
==============================================
我們只有 aaa.com.tw 這個網域,並沒有 mails.aaa.com.tw 這個子網域,所以 Email 正確的設法應該是: @aaa.com.tw
原理如下:
如果使用@mails.aaa.com.tw ,正常的查詢時:
A Mail Server要寄信給 @mails.aaa.com.tw ,會先詢問 mails.aaa.com.tw 這個網域的 Dns Server 是哪一台,但是一問,並沒有 mails.aaa.com.tw 這個網域,所以沒有對應的mails.aaa.com.tw 的A紀錄以及MX紀錄,可能會發生異常的問題。
mails.aaa.com.tw 的MX紀錄與A紀錄如下:(因為沒有這個子網域,所以沒有任何資料)
=======================================
> mails.aaa.com.tw
Server: dns.hinet.net
Address: 168.95.1.1
aaa.com.tw
primary name server = aaa.com.tw
responsible mail addr = root.aaa.com.tw
serial = 2002120101
refresh = 28800 (8 hours)
retry = 14400 (4 hours)
expire = 3600000 (41 days 16 hours)
default TTL = 86400 (1 day)
========================================
如果使用@aaa.com.tw ,正常的查詢時:
A Mail Server要寄信給 @aaa.com.tw ,會先詢問 aaa.com.tw 這個網域的Dns Server 是哪一台,然後就可以正常查詢到 aaa.com.tw 網域內的 MX紀錄 跟 A紀錄。
fec.com.tw 的MX紀錄與A紀錄如下:
=======================================
> set type=mx
> aaa.com.tw
Server: dns.hinet.net
Address: 168.95.1.1
aaa.com.tw MX preference = 10, mail exchanger = mails.aaa.com.tw
aaa.com.tw nameserver = dns01.aaa.com.tw
aaa.com.tw nameserver = dns02.aaa.com.tw
aaa.com.tw nameserver = dns03.aaa.com.tw
aaa.com.tw nameserver = dns.aaa.com.tw
mails.aaa.com.tw internet address = 210.66.xxx.xxx
mails.aaa.com.tw internet address = 210.243.xxx.xxx
mails.aaa.com.tw internet address = 210.243.xxx.xxx
dns01.aaa.com.tw internet address = 210.66.xxx.xxx
dns02.aaa.com.tw internet address = 210.243.xxx.xxx
dns03.aaa.com.tw internet address = 210.243.xxx.xxx
dns.aaa.com.tw internet address = 210.66.xxx.xxx
=======================================
==============================================
我們只有 aaa.com.tw 這個網域,並沒有 mails.aaa.com.tw 這個子網域,所以 Email 正確的設法應該是: @aaa.com.tw
原理如下:
如果使用@mails.aaa.com.tw ,正常的查詢時:
A Mail Server要寄信給 @mails.aaa.com.tw ,會先詢問 mails.aaa.com.tw 這個網域的 Dns Server 是哪一台,但是一問,並沒有 mails.aaa.com.tw 這個網域,所以沒有對應的mails.aaa.com.tw 的A紀錄以及MX紀錄,可能會發生異常的問題。
mails.aaa.com.tw 的MX紀錄與A紀錄如下:(因為沒有這個子網域,所以沒有任何資料)
=======================================
> mails.aaa.com.tw
Server: dns.hinet.net
Address: 168.95.1.1
aaa.com.tw
primary name server = aaa.com.tw
responsible mail addr = root.aaa.com.tw
serial = 2002120101
refresh = 28800 (8 hours)
retry = 14400 (4 hours)
expire = 3600000 (41 days 16 hours)
default TTL = 86400 (1 day)
========================================
如果使用@aaa.com.tw ,正常的查詢時:
A Mail Server要寄信給 @aaa.com.tw ,會先詢問 aaa.com.tw 這個網域的Dns Server 是哪一台,然後就可以正常查詢到 aaa.com.tw 網域內的 MX紀錄 跟 A紀錄。
fec.com.tw 的MX紀錄與A紀錄如下:
=======================================
> set type=mx
> aaa.com.tw
Server: dns.hinet.net
Address: 168.95.1.1
aaa.com.tw MX preference = 10, mail exchanger = mails.aaa.com.tw
aaa.com.tw nameserver = dns01.aaa.com.tw
aaa.com.tw nameserver = dns02.aaa.com.tw
aaa.com.tw nameserver = dns03.aaa.com.tw
aaa.com.tw nameserver = dns.aaa.com.tw
mails.aaa.com.tw internet address = 210.66.xxx.xxx
mails.aaa.com.tw internet address = 210.243.xxx.xxx
mails.aaa.com.tw internet address = 210.243.xxx.xxx
dns01.aaa.com.tw internet address = 210.66.xxx.xxx
dns02.aaa.com.tw internet address = 210.243.xxx.xxx
dns03.aaa.com.tw internet address = 210.243.xxx.xxx
dns.aaa.com.tw internet address = 210.66.xxx.xxx
=======================================