While CDNs use DNS for dynamic request routing, DNS's main role is mapping domain names to IP addresses. CDNs distribute content geographically to improve website performance and reduce latency. On the other hand, DNS is responsible for translating domain names into their corresponding IP addresses. Essentially, CDNs optimize content delivery, while DNS optimizes domain name resolution.