I have a website, example.tld. The DNS has an A record for example.tld that points to 22.214.171.124.
Is there any difference (as far as Apache is concerned/configured) whether a sub-domain (www.example.tld) is an A record for 126.96.36.199 or a CNAME for example.tld?
From what I understand, the way the IP gets resolved is separate from the actual HTTP request so how Apache can differentiate between the two, and why/when it matters?
I can't show the Apache config but assume it works well with one case but not the other.
Edit: I handle the DNS side and I have a client who says their hosting provider is insisting that their sub-domain (www.example.tld) won't work unless the sub-domain is defined as a CNAME (as opposed to a A / host record.) I don't see why this matters since everything resolves to the same IP but I don't know Apache, so any edge cases, exceptions, whatever to this rule?
The client is stuck between both sides saying the other is wrong. If I'm in the wrong, I'd like to understand why (and just to reiterate, I don't know Apache) so I won't make the same mistake again.