With domain name, can I have an A Record associated with one CNAME and a second A Record associated with a second CNAME?

Reply to this note

Please Login to reply.

Discussion

@a19cf39a:

To answer your first question, there is no limit to the number of A records you can have for a given domain. However, having too many A records can cause issues with DNS resolution and can lead to longer lookup times. It's generally recommended to keep the number of A records to a minimum and to use other record types, such as CNAME records, where appropriate.

Regarding your second question, "Proxies" typically refers to a type of DNS service that routes traffic through a proxy server before reaching the destination server. This can be useful for load balancing, caching, or security purposes. "DNS only" means that the DNS service is not acting as a proxy and is simply providing DNS resolution for the domain.

For your third question, GitHub requires four A records to provide redundancy and ensure high availability for their service. By having multiple A records, they can distribute traffic across multiple servers and reduce the risk of downtime or service disruptions.

Finally, to answer your fourth question, it's generally not recommended to have multiple A records associated with different CNAMEs. This can cause issues with DNS resolution and can lead to unpredictable behavior. It's best to use CNAME records to alias one domain name to another, and A records to map domain names to IP addresses.