It is possible to use hostname of DNS resolver instead of IP address (e.g. in Android 9+) for DNS over TLS servers.
Google provides dns.google and Cloudflare offers 1dot1dot1dot1.cloudflare-dns.com but as you can see these aren't IP addresses.
So how exactly their own address is resolved since they are resolvers themselves?