Dns-Zone

如何僅將網站指向另一個 IP,但將電子郵件保留在現有主機上?它是否正確?

  • November 1, 2020

如何僅將網站指向另一個 IP,但將電子郵件保留在現有主機上?

網站必須指向IP:202.51.74.81

電子郵件必須指向:202.63.240.138

我們使用以下方法檢查電子郵件:

  • webmail.domainname.com
  • mail.domainname.com
  • domainname.com/webmail

我做了以下事情。它會起作用嗎?如果不是,會怎樣?謝謝你。

domainname.com. 14400   IN  A
202.51.74.81

domainname.com. 14400   IN  MX  
Priority: 0
Destination: domainname.com

mail.domainname.com.    14400   IN  A   
202.63.240.138

www.domainname.com. 14400   IN  CNAME   
domainname.com

ftp.domainname.com. 14400   IN  A   
202.63.240.138

domainname.com. 14400   IN  TXT 
v=spf1 ip4:202.63.240.138 +a +mx ~all

webmail.domainname.com. 14400   IN  A   
202.63.240.138

whm.domainname.com. 14400   IN  A   
202.63.240.138

cpcalendars.domainname.com. 14400   IN  A   
202.63.240.138

cpcontacts.domainname.com.  14400   IN  A   
202.63.240.138

cpanel.domainname.com.  14400   IN  A   
202.63.240.138

webdisk.domainname.com. 14400   IN  A   
202.63.240.138

default._domainkey.domainname.com.  14400   IN  TXT 
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArRVrbgxh+ltKuFjtpVtbcwUvhADG2z5Ylr4fjq4LM4TaXp7TEoeD2i0ymjIwsFKMkwji4LhTq7rgdLghSJKi0WJkSQi6bGV//oLQrIh6TVht99UrLBzj90dVZ8hIptIx+y7nPbpojMxJZCobJfbeZ/kF5WtgLMe30Zemb/zZgBZPkQoltMsc0ebyEh/G1nVoaJcPEieFIsflYsCKHqlxT0BW1W8cAOMEzLJWFelym+PyZ+077gEcWcX+dxzfSPH3CeX80Pb6Gifa6qfU3hn45cLbx/3/WrKgXqeOKxRhIVmg3IK4iSByD3OdwLb8qTWv1iuZw/D8aYsvOMC3S+UndwIDAQAB;

否則可能沒問題,但是您的MX記錄應該指向郵件伺服器!

example.com. IN MX 0 mail.example.com.

引用自:https://serverfault.com/questions/1008807