How to overcome root domain CNAME restrictions?

前端 未结 8 770
失恋的感觉
失恋的感觉 2020-12-04 05:23

We are hosting many web applications for our customers. As is obvious they want to use their own domains to refer to those applications, usually they want that any user tha

8条回答
  •  时光取名叫无心
    2020-12-04 05:55

    CNAME'ing a root record is technically not against RFC, but does have limitations meaning it is a practice that is not recommended.

    Normally your root record will have multiple entries. Say, 3 for your name servers and then one for an IP address.

    Per RFC:

    If a CNAME RR is present at a node, no other data should be present;

    And Per IETF 'Common DNS Operational and Configuration Errors' Document:

    This is often attempted by inexperienced administrators as an obvious way to allow your domain name to also be a host. However, DNS servers like BIND will see the CNAME and refuse to add any other resources for that name. Since no other records are allowed to coexist with a CNAME, the NS entries are ignored. Therefore all the hosts in the podunk.xx domain are ignored as well!

    References:

    • http://tools.ietf.org/html/rfc1912 section '2.4 CNAME Records'
    • http://www.faqs.org/rfcs/rfc1034.html section '3.6.2. Aliases and canonical names'

提交回复
热议问题