Possible to search all websites' DNS for a specific IP address?

I’m wondering it it’s possible to search all my websites’ DNS zones to see if a certain IP address has been used?

Use case:

I’m about to swap dedicated servers for my client sites, most of which are on Cloudflare.
I think I have updated all the A records for all sites to point to the new IP address, but I want to be 100% sure.
I don’t want to have to open each site’s DNS zone manually and check.
It would be great to search all sites DNS records for the old IP.

1 Like

You might try using the API. There’s a script called Cloudflare-backup on github cloudflare-backup/cf-backup.js at master · rmg/cloudflare-backup · GitHub which exports DNS records and you could search through the results (or modify the script to search through it for you).


Worked perfectly, thanks!


Went very well up-till now and started given error since morning.

Traceback (most recent call last):
File “/usr/local/bin/cf-backup”, line 80, in
backup_dns(email, token, args.zones, args.output, args.ns)
File “/usr/local/aws/lib/python2.7/site-packages/Cloudflaredns_backup/init.py”, line 127, in backup_dns
File “/usr/local/aws/lib/python2.7/site-packages/Cloudflaredns_backup/init.py”, line 99, in bindify
content = u’\t’.join((str(rec[‘priority’]), content))
KeyError: ‘priority’

Any suggestion ?

-Kunal Modi

Best to submit an issue on github