NewCode CLOUD — 20% off your first month on all cloud VPSClaim

AdGuard Home on Hong Kong VPS: Private DNS with Ad Blocking (2026)

· 1 min read

AdGuard Home is a network-wide DNS server that blocks ads, trackers and malicious domains, and supports encrypted DNS-over-HTTPS (DoH), DNS-over-TLS and DNS-over-QUIC. On a Hong Kong VPS it becomes a private resolver for phones, laptops and offices, with per-client rules and full query logs you control.


Important: Do Not Run an Open Resolver

A public DNS server with no access control can be abused for DDoS amplification. Restrict access by client ID over DoH, by allowed IPs, or by running it behind WireGuard.

Step 1: Install

curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
# Setup wizard: http://VPS_IP:3000  (close port 3000 after setup)

Step 2: Configure Upstreams and Blocklists

# AdGuardHome.yaml (key parts)
dns:
  bind_hosts: [ 127.0.0.1, 10.8.0.1 ]   # loopback + WireGuard address only
  upstream_dns:
    - https://dns.google/dns-query
    - https://cloudflare-dns.com/dns-query
  bootstrap_dns: [ 1.1.1.1, 8.8.8.8 ]
  cache_size: 16777216
  cache_optimistic: true
  allowed_clients: [ 10.8.0.0/24 ]

Step 3: Enable DoH with a Client ID

# Nginx forwards /dns-query/ to AdGuard Home plain HTTP
server {
    listen 443 ssl http2;
    server_name dns.example.com;
    location /dns-query {
        proxy_pass http://127.0.0.1:3001/dns-query;
        proxy_set_header Host $host;
    }
}
# Phone setting (Android Private DNS / iOS profile): https://dns.example.com/dns-query/alice-phone

Step 4: Firewall

ufw allow 443/tcp
ufw deny 53
ufw deny 3000

Conclusion

AdGuard Home on a Hong Kong VPS gives you encrypted, filtered DNS with your own logs and rules. It uses little memory, so it can share a VPS with other light services. Keep it restricted to your own clients.

Run your own DNS: Browse Server.HK Hong Kong VPS plans.

Related articles

More in VPS & ServersServer setup guides