How to use DNS-over-TLS with Stubby?

Following the announcement of DNS over TLS for Google DNS (8.8.8.8), we examine how to configure DNS-over-TLS on our computers by using Stubby.

First, let’s install Stubby from the Ubuntu 18 software repository;

sudo apt install stubby

Stubby will start working directly with pre-defined configuration. To add Google DNS 8.8.8.8, add the following lines to the configuration file;

/etc/stubby/stubby.yml
# Google
- address_data: 8.8.8.8
  tls_auth_name: "dns.google"
- address_data: 8.8.4.4
  tls_auth_name: "dns.google"

After making sure that Stubby listens port 53, we can start using cryptic DNS by changing the DNS definition to 127.0.0.1 in our network settings.

sudo netstat -lnptu | grep stubby



Bir cevap yazın

(gerekli)