I got a new WEB host. But I do not want to:
1. Transfer domain registration to that host
2. DNS forward to the new host DNS server
So I must do something on my current DNS records in order to point WEB host to my new host. I was doing like this, add or modify CNAME records,
Name Type Value
www CNAME MyID.newserver.com.
Pay attention to the point at the end of records.
This means when user prompt 'www.myOldDomain.com will point to MyID.newserver.com, and of course on your new server you need build a domain mapping, map your myOldDomain name to a sub folder. When done, have a test that start an console by cmd and nslookup, check whether 'www.myOldDomain.com have point to new IP address.
-----------------------------------------
我买了个新空间,但又不想:
1.把域名转到新服务商
2.不想做DNS forward到新服务商的DNS域服务器
结果只要改或加CNAME记录就可以了,如旧域名为www.myOldDomain.com,新服务商(newserver.com)上买的ID为MyID.那么这条记录为:
www CNAME MyID.newserver.com.
不要忘了最后那个".",当然还要在新服务商的域解析里加记录,把www.myOldDomain.com对应到某个目录.这样就可以了. 测试时在cmd, nslookup后,查一下新的www.myOldDomain.com是否已指向新IP. |