我有两台服务器,服务器 1 和服务器 2。域的名称服务器指向服务器 1。
1.我有关于 Server1 DNS 区域的以下配置:
domain.com. 1200 IN A server2-ip Edit Delete
localhost.domain.com. 14400 IN A 127.0.0.1 Edit Delete
www.domain.com. 1200 IN CNAME domain.com Edit Delete
ftp.domain.com. 1200 IN CNAME domain.com Edit Delete
webdisk.domain.com. 1200 IN A server2-ip Edit Delete
autodiscover.domain.com. 1200 IN A server2-ip Edit Delete
autoconfig.domain.com. 1200 IN A server2-ip Edit Delete
domain.com. 1200 IN TXT v=spf1 +a +mx +ip4:server1-ip ?all Edit Delete
mail.domain.com. 1200 IN A server1-ip Edit Delete
2. 我有关于 Server2 DNS 区域的以下配置:
domain.com. 1200 IN A server2-ip Edit Delete
www.domain.com. 1200 IN CNAME domain.com Edit Delete
ftp.domain.com. 1200 IN A server2-ip Edit Delete
cpanel.domain.com. 1200 IN A server2-ip Edit Delete
webdisk.domain.com. 1200 IN A server2-ip Edit Delete
whm.domain.com. 1200 IN A server2-ip Edit Delete
webmail.domain.com. 1200 IN A server2-ip Edit Delete
domain.com. 1200 IN TXT v=spf1 +a +mx +ip4:server1-ip ?all Edit Delete
mail.domain.com. 1200 IN A server1-ip Edit Delete
我还将 server1 的 MX 条目设置为指向本地 mail.domain.com ,并将 server2 的 MX 条目设置为指向远程 mail.domain.com。**
电子邮件运行良好。电子邮件已设置为服务器 1,但网站应该从服务器 2 运行,并且仍从服务器 1 运行。出了什么问题?:D**
答案1
问题已解决。它正常工作了。看来我的浏览器缓存显示了旧服务器的网站。现在它显示了新服务器的网站。
正如 Kamil Šrot 提到的,我们需要等待几个小时才能让域名传播 DNS 记录更改。