About Stubby
Stubby is an application that acts as a local stub resolver using DNS-over-TLS. It encrypts the DNS queries a desktop or laptop sends to a DNS Privacy resolver, which is meant to increase the privacy of the person using the machine.
It runs as a daemon listening on the loopback addresses, and every outgoing query received there is sent out over TLS. Its default configuration uses Strict Privacy and a subset of the available DNS Privacy servers, with more servers that can be switched on in the configuration.
Stubby is developed under the getdns project and is released under the BSD-3-Clause licence. Documentation is hosted on dnsprivacy.org, with guides for building from source on Linux, running as a service, Homebrew on macOS and a Windows installer. A graphical Stubby Manager is described as in progress.
Key features
- Local stub resolver using DNS-over-TLS
- Daemon listening on loopback addresses
- Sends outgoing queries over TLS
- Strict Privacy default configuration
Good fit for
- Encrypting DNS on a laptop
- Running a local DNS-over-TLS client
Stubby: questions and answers
- What is Stubby used for?
- Stubby is a local DNS privacy stub resolver that sends a machine's DNS queries over TLS to a DNS Privacy resolver. It is a good fit for encrypting DNS on a laptop and running a local DNS-over-TLS client.
- Is Stubby open source?
- Yes. Stubby is open source under the BSD-3-Clause licence. Its source code is on GitHub at getdnsapi/stubby and is written mainly in C.
- Is Stubby free?
- Yes. Stubby is open source, so the software itself is free to use.
- Can I self-host Stubby?
- Yes. Stubby can be self-hosted on your own server or infrastructure.
- What is Stubby an alternative to?
- Stubby is an open-source alternative to NextDNS and Control D. Other open-source alternatives to NextDNS include Dnscrypt Proxy, AdGuard Home and Pi-hole.
- Is Stubby actively maintained?
- The most recent commit to Stubby was on 15 July 2025, and the latest release is v0.4.3, published on 22 December 2022. The project has 1.3k stars on GitHub.
Open-source alternatives to Stubby
See all
Dnscrypt Proxy
Customer Support
dnscrypt-proxy 2 - A flexible DNS proxy, with support for encrypted DNS protocols.
ISCvs NextDNS★ 14k
AdGuard Home
Networking & VPN
Network-wide ads & trackers blocking DNS server
GPL-3.0vs Cisco Umbrella★ 39k
Pi-hole
Networking & VPN
A black hole for Internet advertisements
OSSvs Cisco Umbrella★ 62k
Technitium DNS Server
Networking & VPN
Technitium DNS Server
GPL-3.0vs Cloudflare★ 10k
Unbound
Networking & VPN
Unbound is a validating, recursive, and caching DNS resolver.
BSD-3-Clausevs Gcore★ 5.1kBlocky
Networking & VPN
Fast and lightweight DNS proxy as ad-blocker for local network with many features
Apache-2.0vs Cisco Umbrella★ 7.1k

NextDNS
Control D