Guida

DNS privato con AdGuard Home e Unbound

IntermedioLettura di 20 minAggiornato 12 maggio 2026
Risposta breve

AdGuard Home filtra e serve DNS-over-HTTPS; Unbound dietro di esso esegue la ricorsione completa, così nessun resolver upstream vede mai le tue query. Su una istanza da $4, la coppia usa meno di 200 MB di RAM e sostituisce la fonte più ricca di dati comportamentali su di te: il resolver del tuo ISP.

01 Installa Unbound come resolver ricorsivo

Bind it to localhost on a non-standard port so AdGuard Home can take 53.

apt install -y unbound
cat >/etc/unbound/unbound.conf.d/local.conf <<'EOF'
server:
  interface: 127.0.0.1@5335
  do-ip6: yes
  prefetch: yes
  hide-identity: yes
  hide-version: yes
  qname-minimisation: yes
EOF
systemctl restart unbound

02 Installa AdGuard Home

The installer sets up a systemd unit and a web interface on port 3000 for initial configuration.

curl -sSL https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v

03 Punta AdGuard ad Unbound

In Settings → DNS, set the upstream to 127.0.0.1:5335 and disable all other upstreams. Full recursion means no third party sees your queries at all.

04 Abilita DNS-over-HTTPS

Get a certificate with Certbot, then enable DoH on 443 and DoT on 853 in the encryption settings. Clients then reach the resolver privately in transit as well as at rest.

certbot certonly --standalone -d dns.example.com

05 Blindalo

Restrict access by client IP, or require DoH with a secret path. An open resolver is recruited into DNS amplification attacks within days and will be null-routed.

Domande frequenti

È meglio di un resolver pubblico?

Privatamente, sì — nessun terzo vede le tue query con la ricorsione completa. I resolver pubblici sono più veloci grazie alla dimensione della cache; il compromesso è la velocità per la visibilità.

Quanto costa gestirlo?

$4 al mese. È il miglioramento della privacy più conveniente disponibile.