Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

The Homebrew formula currently installs the 0.12.5 2 version of stubby, based on getdns libgetdns 1.24.1

Installation

1. Install Homebrew if you don't aleady have it:

...

Code Block
sudo /usr/local/opt/bin/stubby -C /usr/local/etc/stubby/stubby.yml -l
  • The -l flag enables logging

Logging from the stubby service

The logging is currently crude and simply writes to a file. (We are working on making this better!) To see the logs

Code Block
sudo tail -f /usr/local/var/log/stubby/stubby.log

Test Stubby

A quick test can be done by using dig (or your favourite DNS tool) on the loopback address

Code Block
>

...

 dig @127.0.0.1 www.example.com

Running Stubby as a service

...

Code Block
sudo brew services start stubby

Logging from the stubby service

The logging is currently crude and simply writes to a file. (We are working on making this better!) To see the logs

Code Block
sudo tail -f /usr/local/var/log/stubby/stubby.log

Modify your upstream resolvers

...

It is recommended to use the default configuration file provided which will use 'Strict' privacy mode and spread the DNS queries among several of the current DNS Privacy test servers. Note that this file contains both IPv4 and IPv6 addresses. The file is installed in:

Code Block
/usr/local/etc/stubby/stubby.yml


More information on how to customise the configuration can be found here.