Introduction to NSD
The NLnet Labs Name Server Daemon (NSD) is an authoritative DNS name server developed for operations in environments where speed, reliability, stability, and security are of critical importance.What is NSD?
NSD is a complete implementation of an authoritative DNS nameserver. Unlike recursive resolvers that cache DNS queries, NSD serves authoritative answers for zones it hosts. When a query comes in, NSD answers directly from its zone data with extremely high performance.NSD is designed with a pure philosophy that prioritizes raw performance. If you serve hundreds of thousands or even millions of queries per second, NSD is a leading implementation worldwide.
Key Features
Exceptional Performance
Built for raw speed with optimized data structures and minimal overhead. Handles millions of queries per second efficiently.
IPv6 Support
Full native IPv6 support alongside IPv4, with dual-stack operation out of the box.
DNSSEC Ready
Complete support for DNSSEC including NSEC3 for authenticated denial of existence.
Zone Transfers
Full support for AXFR and IXFR zone transfers, with TSIG authentication for secure transfers.
Multi-Core Scaling
Scales across multiple CPU cores with configurable server processes and CPU affinity options.
Rate Limiting
Built-in response rate limiting to mitigate DNS amplification attacks.
Why Choose NSD?
Raw Performance
NSD is engineered from the ground up for maximum query performance. The implementation uses:- Radix tree lookups - Optimized data structures for fast zone data access
- Multi-process architecture - Distribute load across CPU cores
- Minimal memory footprint - Efficient memory usage even with large zone files
- TCP and UDP optimization - Support for modern kernel features like
recvmmsgandsendmmsg
Production-Ready Stability
NSD has been battle-tested in production environments worldwide, including:- Root DNS servers
- Top-level domain (TLD) operators
- Enterprise DNS infrastructure
- High-traffic web services
Security First
Security features include:- Privilege separation - Drops privileges after binding to port 53
- Chroot support - Optional chroot jail for additional isolation
- TSIG authentication - Cryptographic authentication for zone transfers
- Rate limiting - Protection against DNS amplification attacks
- TLS support - DNS over TLS (DoT) on port 853
Use Cases
Authoritative DNS Hosting
NSD excels at serving authoritative DNS data:example.com zone
Primary/Secondary DNS Architecture
Set up robust DNS infrastructure with primary and secondary servers:- Primary server - Authoritative source for zone data
- Secondary servers - Receive zone updates via AXFR/IXFR
- NOTIFY mechanism - Immediate updates to secondaries
- Automated synchronization - Keeps zone data consistent
High-Volume Query Serving
Ideal for scenarios requiring extreme performance:- Large-scale web properties
- Content delivery networks (CDNs)
- DDoS mitigation services
- Anycast DNS deployments
Architecture Overview
Multi-Process Design
NSD uses a multi-process architecture for optimal performance:- Main process - Manages child processes and configuration
- Server processes - Handle incoming DNS queries (configurable count)
- XFRD process - Manages zone transfers and NOTIFY messages
Query Processing Flow
Memory Architecture
NSD loads zone data into memory for fast access:- Zone compilation - Zone files are compiled into efficient binary format
- Memory mapping - Optional mmap support for reduced memory overhead
- Radix tree structure - Fast O(log n) lookups for domain names
- Packed structures - Optional packed alignment to reduce memory usage
Standards Compliance
NSD strives to be a reference implementation for DNS standards:- RFC 1034, 1035 - Core DNS protocol
- RFC 2181 - DNS clarifications
- RFC 3596 - DNS extensions for IPv6 (AAAA records)
- RFC 4033-4035 - DNSSEC protocol
- RFC 5936 - AXFR zone transfers
- RFC 7766 - DNS over TCP
- RFC 7858 - DNS over TLS
- RFC 9102 - ZONEMD for zone verification
Open Source & Community
NSD is distributed free of charge under the BSD license, allowing use in both open source and commercial projects.GitHub Repository
View source code, report issues, and contribute
Mailing List
Join the NSD users community
Documentation
Complete official documentation
NLnet Labs
Learn about the team behind NSD
Version Information
NSD is actively maintained with regular releases. The current stable version is 4.14.2, released with features including:- Enhanced performance optimizations
- Improved DNSSEC support
- Prometheus metrics endpoint
- XDP (AF_XDP) socket support for ultra-high performance
- Catalog zones support
Next Steps
Ready to get started with NSD?Installation Guide
Learn how to install NSD on your system
Quick Start
Get NSD up and running in minutes