據我所知,以下 DNS 記錄應作為我的郵件伺服器的故障轉移:
example.com A 192.0.2.1 3600
www.example.com A 192.0.2.1 3600
ftp.example.com A 192.0.2.1 3600
example.com TXT "v=spf1 a mx a:spf.batchsmtp.com ip4:198.51.100.1 ip4:203.0.113.2 -all" 86400
example.com MX srv1.batchsmtp.com 10 86400
example.com MX srv2.batchsmtp.com 10 86400
srv1.example.com A 198.51.100.1 3600
srv2.example.com A 203.0.113.2 3600
_smtp._tcp.example.com SRV 2 25 srv1.example.com 10 3600
_smtp._tcp.example.com SRV 1 25 srv2.example.com 10 3600
_imaps._tcp.example.com SRV 2 993 srv1.example.com 10 3600
_imaps._tcp.example.com SRV 1 993 srv2.example.com 10 3600
_imap._tcp.example.com SRV 2 143 srv1.example.com 10 3600
_imap._tcp.example.com SRV 1 143 srv2.example.com 10 3600
_submission._tcp.example.com SRV 2 587 srv1.example.com 10 3600
_submission._tcp.example.com SRV 1 587 srv2.example.com 10 3600
我已經關閉srv1.example.com
,但我的電子郵件用戶端只是超時並且似乎從未聯繫過srv2.example.com
(短 TTL 用於測試)。
線上 DNS 工具似乎從未顯示我的 SRV 記錄,但我相信這是正常行為。
- 我在這裡做錯了什麼嗎?
- 或者郵件用戶端是否需要很長時間才能開始使用這些記錄(例如 48 小時)?
- 我需要在電子郵件用戶端中添加特定內容嗎? (哪個目標主機)
嘗試過的電子郵件用戶端:Mozilla Thunderbird、iOS Mail
這是挖掘給出的結果:
;; QUESTION SECTION:
;_imaps._tcp.example.com. IN SRV
;; ANSWER SECTION:
_imaps._tcp.example.com. 3600 IN SRV 10 2 993 srv1.example.com.
_imaps._tcp.example.com. 3600 IN SRV 10 1 993 srv2.example.com.
;; AUTHORITY SECTION:
example.com. 86400 IN NS ns3.nsdomain.com.
example.com. 86400 IN NS ns2.nsdomain.com.
example.com. 86400 IN NS ns1.nsdomain.com.
;; ADDITIONAL SECTION:
srv2.example.com. 2502 IN A 203.0.113.2
srv1.example.com. 3600 IN A 198.51.100.1
答案1
世界還沒有為 SRV 記錄做好準備。唉,它們從 1996 年才存在…