How to find out all DNS records of sites behind CloudFlare
April 24, 2021
How to list all DNS records for a domain
Using the dig command, you can display all types of DNS records for the specified domain at once, but it does not work in all cases:
dig zalinux.ru ANY
To query all types of DNS records, but limiting the number of displayed sections only by the response section, add the “+noall +answer” options:
dig zalinux.ru ANY +noall +answer
How to list all DNS records for a domain behind CloudFlare
It works fine in most cases. But for some sites in the DNS server settings it is forbidden to display a full list of records, examples of such sites are all sites behind CloudFlare.
As a result, for example, for the site hhzunt.top (hidden behind CloudFlare), the usual method fails to get the contents of DNS records:
dig hhzunt.top ANY
You can see the answer section, apparently it is a reference to some documentation:
hhzunt.top. 3787 IN HINFO "RFC8482" ""
Considering that requests for single records cannot be prohibited, and also taking into account that the number of DNS records is finite, you can enumerate them all one by one:
dig hhzunt.top A +short dig hhzunt.top AAAA +short dig hhzunt.top SOA +short dig hhzunt.top MX +short
You can also use the online service on the w-e-b.site or SuIP.biz website, where a new method has been added to obtain all DNS records for a specific site. The essence of the method is a full enumeration; queries are made to the DNS server for each type of record. As a result, it is now possible to get a complete list of DNS records even for sites behind CloudFlare.
Service address: https://w-e-b.site/?act=alldns
Its mirror: https://suip.biz/?act=alldns
Enter the site address, select “Enumeration” as the method.
An example of getting all DNS records for a site behind CloudFlare:
DNS records SVCB and HTTPS are displayed for all sites – regardless of whether the system administrator set them or not. Their value repeats the contents of the A record.
- Redirect to HTTPS not working in WordPress (71.1%)
- How to measure distance (route and direct) between two points on Google maps (69.3%)
- How to clear DNS and other caches in Google Chrome (56.5%)
- How to configure the network interface to use a dynamic IP address (DHCP) in PowerShell (56.5%)
- Demote Domain Controllers in Windows Server in PowerShell and GUI (56.5%)
- How to prevent money loss in international roaming. Setting up your phone for international roaming (RANDOM - 50%)