Let's say I have a website with a domain name, of course. The domain name has:
- One A record(example.com) which points to the origin server(or load balancer).
- One CNAME record(cdn.example.com) which points to a CDN server.
Now, my question is, when a client makes a request to cdn.example.com then how is this request directed to the nearby CDN edge server? Who resolves this? Is it the DNS server maintained by the ISPs, the CDN itself, or something else?