Stubby

Open source

Stubby is a local DNS privacy stub resolver that sends a machine's DNS queries over TLS to a DNS Privacy resolver.

Open-source alternative to

dnsprivacy.org
Stubby homepage screenshot
GitHub stars
1.3k
Last 30 days
-1(+0%)
Last commit
1 yr ago
Repository age
9 years
Version
v0.4.3
Licence
BSD-3-Clause
Self-hosted
Yes

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
Built with
C tools
Tags
dns
dns over tls
privacy
stub resolver
getdns
encryption

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

SaaS alternatives to Stubby

See all