Guia

DNS privado com AdGuard Home e Unbound

Intermediário20 min de leituraAtualizado 12 de maio de 2026
Resposta curta

O AdGuard Home filtra e serve DNS-over-HTTPS; o Unbound por trás dele realiza recursão completa, para que nenhum resolvedor upstream veja as suas consultas. Numa instância de $4, o par usa menos de 200 MB de RAM e substitui a fonte mais rica de dados comportamentais sobre si — o resolvedor do seu ISP.

01 Instale o Unbound como resolvedor recursivo

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 Instale o 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 Aponte o AdGuard para o 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 Ative o 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 Proteja-o

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.

Perguntas frequentes

Isto é melhor do que um resolvedor público?

Privadamente, sim — nenhum terceiro vê as suas consultas com recursão completa. Os resolvedores públicos são mais rápidos devido ao tamanho da cache; a troca é velocidade por visibilidade.

Quanto custa para funcionar?

$4 por mês. É a melhoria de privacidade mais barata e significativa disponível.