The NextDNS CLI sends DNS queries over HTTPS, works with NextDNS or other DoH providers, and targets routers, Unix systems, Windows, and macOS without a GUI.
Overview
This project is the open-source NextDNS command-line client, not the hosted NextDNS control plane itself. It lets a machine use DNS-over-HTTPS, primarily with NextDNS accounts but also as a generic DoH client or split setup between NextDNS and another resolver.
The CLI is oriented toward routers and Unix-like servers, while still serving Windows and macOS users who want a fully open-source client without a graphical interface. Wiki documentation covers installation and day-to-day usage, including shell completion and cache statistics via nextdns cache-stats.
Advanced router integration includes OpenWrt IPv6 relay DNS handling when setup-router is enabled, adjusting advertised DNS on downstream interfaces while preserving explicit IPv4 entries. The tool saves and restores original UCI DNS options through a recovery file across daemon restarts.
The broader NextDNS service described on the vendor site adds filtering, analytics, and parental controls in the cloud; the open-source client focuses on the local proxy that forwards encrypted DNS according to your configuration.
Key features
- DNS-over-HTTPS client
- NextDNS or third-party DoH backends
- Split horizon resolver mixing
- Shell completion support
- Cache statistics command
- OpenWrt setup-router IPv6 relay
- Saved UCI DNS restore on shutdown
- Wiki installation and usage guides
Use cases
- DoH on home routers and servers
- Open-source desktop DNS proxy
- OpenWrt NextDNS integration
- Encrypted DNS without GUI clients