我们为客户托管了许多Web应用程序.很明显,他们希望使用自己的域来引用这些应用程序,通常他们希望任何键入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
Run Code Online (Sandbox Code Playgroud)
我们希望能够更改IP地址customer1.mycompanydomain.example或A记录,我们的客户将遵循我们控制的记录.
在我们的DNS中它看起来像:
customer1.mycompanydomain.example IN A 192.0.2.1
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?