After looking into the code i assumed ns.cloudflare.com is a resolver/nameserver which has the internal nameservers as stub zone hints. This created some problems on my machines without IPv4 adresses.
The check inside the code is to verifiy that the record is actually delivered by the cloudflare nameservers. At this point you don’t want to rely on resolvers because also they do caching.
Nevertheless is the question why there is a domain where only a A record exists when the whole cloudflare infrastructure is dual-stack.
That tool is using a resolver it shouldn’t. Replace it with either a lookup to determine the correct authoritative nameservers for a zone or query a public resolver.
As to why it doesn’t have IPv6 addresses… .. no one in the community can answer that, but it’s not intended for purpose.