Change CNAME to point to a hosted server, using public IP address.

0

I currently have a CNAME, for example, portal.mycompany.net which points back to my companies public IP address and name is translated at the firewall to access our web server. I need to change this so portal.mycompany.net now point to a public IP address of a company that is now hosting that site. Would I simply just change the 'value/route traffic to' field and enter the public address where this now hosted or do I need to change the CNAME 'type' to something different? Thanks for any help.

已提問 1 年前檢視次數 344 次
2 個答案
1

To expand on the answer by rePost-User-7136343, you can use an A record (or AAAA for IPv6) to point a DNS name to an IP address.

專家
已回答 1 年前
  • Thanks for expanding the answer in relation to "Change CNAME to point to a hosted server, using public IP address".

1

Answers The data on a CNAME record must be always another DNS name - that's the fundamental point of a CNAME record. If you look at the RFC 1034, the data in a CNAME should be:

CNAME - a domain name.

Even though, if you put an public IP which sometimes works, but that is not the purpose of CNAME. CNAME is designed and implemented to be a DNS alias; it has no conception of having a public IP address in that data field. Please look at the link for futher information: https://serverfault.com/questions/377934/can-i-use-cname-with-ip-address-why-if-works-sometimes

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南