Cloudflare is actually a nameserver like others but provides things like DDOS protection and more security options tha a traditional Nameserver. They’re not just a CDN.
Cloudflare does also provide domains but that’s a different business of theirs.