Making zone management more efficient with batch DNS record updates
Sep 23, 2024Alex Fattouche

Summary
Introduced a new /dns_records/batch API endpoint that allows for multiple DNS record operations (POST, PUT, PATCH, DELETE) in a single API call, executed within a database transaction. Optimized database queries by removing redundant existence checks and leveraging PostgreSQL's auto_explain for latency analysis. Implemented a specific execution order for operations (deletes, patches, puts, posts) to handle conflicts. Added UI support in the dashboard for batch deletion and proxy status changes of selected DNS records.
More from the DNS Infrastructure & Naming Conventions trail
- The keys to the Internet change on October 11, 2026. Are you ready?
- 1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it
- How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
- BGP ORIGIN attribute manipulation and its impact on the Internet
- Cloudflare Internal DNS is now generally available