Rust-native DNS seeder released
A Rust-based DNS seeder using Zebra's network crate has been released. It uses a lock-free design and per-IP rate limiting to guard against DNS amplification attacks.
The Zcash Foundation released a native Rust implementation of the Zcash DNS Seeder. A DNS seeder is a piece of network plumbing that tells a new node where to find peers when it first starts. A new node does not know where to find peers, so the seeder must provide a list of healthy, active nodes for it to join the network. Until now the network has depended on a legacy implementation.
Rebuilding it in Rust brings three advantages. First, it uses the same zebra-network crate as the Zebra full node, so the logic for crawling the network and the protocol standards match. Second, a lock-free design lets it answer DNS queries with low latency even under heavy load. Third, built-in per-IP rate limiting prevents it from being abused in DNS amplification attacks.
The main features are an active network crawler based on zebra-network, an authoritative DNS server serving A and AAAA records using the hickory-dns framework, Prometheus metrics for peer status and query volume, and Docker and docker-compose support. It is said to be ready for production testing.
The Foundation asks the community and node operators to review the code and test the seeder on mainnet and testnet. The source code, documentation and deployment instructions are in the GitHub repository, and issues can be reported there. Its position is that peer discovery is easy to overlook until it fails, so reinforcing weak links is the best way to support Zcash.
This summary is based on the original; check the original for exact details.