User Tools

Site Tools


pi-hole:configure_pi-hole_with_stubby

Pi-Hole - Configure Pi-Hole with Stubby

Install Stubby

sudo apt intall stubby

Configure Stubby

Edit the file /etc/stubby/stubby.ytml.

Under the listen_addresses section change it to:

/etc/stubby/stubby.ytml
listen_addresses:
  - address_data: 127.0.0.1
    port: 5353
  - address_data: 0::1
    port: 5353

Also change:

round_robin_upstreams: 1

to

round_robin_upstreams: 0

Change the upstream_recursive_servers section to be what is shown in your account under NextDNS.

This is available under the Setup tab, and select Linux and then look for the Stubby section.


Restart Stubby

sudo systemctl restart stubby

Configure Pi-Hole

In your Pi-hole instance, change your upstream DNS to 127.0.0.1#5353.


Test

dig @<pi-hole_ip> www.google.com

where:

  • <pi-hole_ip> is the IP address of the Pi-Hole server.

pi-hole/configure_pi-hole_with_stubby.txt · Last modified: 2020/12/18 10:42 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki