http://www.customer1.example
或http://customer1.example
的用户都进入他们的Web应用程序。我们面临的问题是,我们需要在不久的将来灵活地更改IP地址。我们不想依赖客户对其域名进行A记录更改。因此,我们认为使用CNAME记录可以解决问题,但我们发现CNAME记录无法用于根域名。
基本上:
customer1.example IN CNAME customer1.mycompanydomain.example //this is invalid as the RFC
www.customer1.example IN CNAME customer1.mycompanydomain.example //this is valid and will work
我们希望能够更改customer1.mycompanydomain.example
的IP地址或A
记录,并且我们的客户将遵循我们可以控制的这个记录。在我们的DNS中,它将如下所示:
customer1.mycompanydomain.example IN A 192.0.2.1
任何想法?