DNS Zone Size Calculator
Estimate zone file size, server memory and zone transfer time from your record counts and DNSSEC state.
About DNS Zone Size Calculator
Zone file size is simply the record count times the average line length, while in-memory representation costs more per record because of indexes and pointers. DNSSEC roughly doubles a zone because every RRset gains a signature, and the NSEC or NSEC3 chain adds records of its own. Large signed zones dominate secondary start-up time and AXFR bandwidth, and a zone that no longer fits in memory turns every query into a disk read.
Formulas
DNS Zone Size
zone bytes = total records × average bytes per record, plus roughly 180 bytes per record of RRSIG when DNSSEC is signed.
- total records
- Sum of every RR type in the zone
- RRSIG
- Signature record added per RRset by DNSSEC
- 180 bytes
- Typical RSA/ECDSA signature plus owner name overhead
AXFR transfer time
transfer time = zone transfer bytes × 8 ÷ bandwidth
- bandwidth
- Link rate between primary and secondary, in bits/s
Worked example
With the default values below, DNS Zone Size Calculator returns Total Records of 9,600. Change any input above and every figure here is recalculated in your browser.
Inputs used
- A recordsminimum 0 records
- 5,000 records
- AAAA recordsminimum 0 records
- 3,000 records
- CNAME recordsminimum 0 records
- 1,200 records
- MX, TXT, SRV and other recordsminimum 0 records
- 400 records
- Average bytes per zone-file lineminimum 20 bytes
- 120 bytes
- Zone is DNSSEC signed
- Yes
- Transfer bandwidthminimum 0.1 Mbit/s
- 100 Mbit/s
Results
- Total Records
- 9,600
- Zone File Size
- 1 MiB
- Server Memory Footprint
- 4 MiB
- Zone Transfer Size
- 3 MiB
- Zone Transfer Time
- 0.230 s
Step by step
- 1Values used
- 2DNS Zone Size
- 3AXFR transfer time
- 4Total Records= 9,600
- 5Zone File Size= 1,152,000
- 6Server Memory Footprint= 4,128,000
- 7Zone Transfer Size= 2,880,000
- 8Zone Transfer Time= 0.230 s
Assumptions and limits
- The result is derived only from the 7 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 3 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is DNS Zone Size calculated?
zone bytes = total records × average bytes per record, plus roughly 180 bytes per record of RRSIG when DNSSEC is signed. Zone file size is simply the record count times the average line length, while in-memory representation costs more per record because of indexes and pointers. DNSSEC roughly doubles a zone because every RRset gains a signature, and the NSEC or NSEC3 chain adds records of its own.
Why does DNS Zone Size matter?
Large signed zones dominate secondary start-up time and AXFR bandwidth, and a zone that no longer fits in memory turns every query into a disk read.
What values do I need to enter?
This calculator takes 7 inputs: A records, AAAA records, CNAME records, MX, TXT, SRV and other records, Average bytes per zone-file line, Zone is DNSSEC signed, Transfer bandwidth. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Related Calculators
You might also need
- DNS Query Rate CalculatorCommonly used together
- Active Directory Replication CalculatorCommonly used together
- DNS Cache CalculatorCommonly used together
- Infrastructure Services Health Score CalculatorAlso in DNS & Network Services
- IPFIX Storage CalculatorAlso in DNS & Network Services
- mDNS CalculatorAlso in DNS & Network Services
