Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Adguard DNS Over TLS with stubby? #365

Open
nivliw97 opened this issue Jan 8, 2025 · 1 comment
Open

How to use Adguard DNS Over TLS with stubby? #365

nivliw97 opened this issue Jan 8, 2025 · 1 comment

Comments

@nivliw97
Copy link

nivliw97 commented Jan 8, 2025

Hi, i just installed stubby and i'm trying to add the dns over tls by adguard, which is basically an address that looks like

tls://dhsaoiudhas.d.adguard-dns.com

Where and how should i implement it? I've tried to read the guide however i didn't understand it.

Thanks to whoever will help me

@saradickinson
Copy link
Contributor

What platform are you on and how did you install stubby?

To adjust the upstreams used by Stubby you need to edit the stubby.yml configuration file. On linux the default location is /etc/stubby/stubby.yml - the stubby log will show you the path of the actual file used. A sample version of this file is found at: https://github.com/getdnsapi/stubby/blob/develop/stubby.yml.example

In that file there is a section marked

upstream_recursive_servers:

with the default server configured (getdnsapi.net). You can replace this with the Adguard server config and then restart stubby. (Note that further down the file there is a section with the config for public Adguard servers but that is now out of date and you need to get the new details from the Adguard website (https://adguard-dns.io/en/public-dns.html) if you want to use those depending on what filtering option you want and if you have IPv6)

However for your specific server, you need a config like the following (the IP addresses are retrieved using dig) if you have both IPv4 and IPv6:

# Adguard server IPv4
  - address_data: 94.140.14.49
    tls_auth_name: "dhsaoiudhas.d.adguard-dns.com"
# Adguard server IPv6
  - address_data: 2a10:50c0::ded:ff
    tls_auth_name: "dhsaoiudhas.d.adguard-dns.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants