Skip to content

hagezi/dns-servers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HaGeZi DNS: Free, Non-Commercial EU Public DNS Servers

HaGeZi DNS offers free, non-commercial public DNS resolvers designed and operated by a private individual for the European community. It provides robust DNS-based blocking of ads, trackers, scam, phishing, fake, and malware domains - helping users achieve greater privacy and security online with zero cost.

Features

  • EU-only hosting (Hetzner: Falkenstein, Nuremberg, Helsinki) and jurisdiction, with full GDPR and ENISA recommendations.
  • Entirely open-source stack: Technitium DNS on Debian Linux.
  • Blocking level: Balanced (Ads, Tracking, Analytics, Metrics, Telemetry, Phishing, Malware, Spam, Scam, Fake, Cryptojacking)
  • Blocklists: HaGeZi Multi Pro & HaGeZi Threat Intelligence Feeds
  • No additional censorship, only security and privacy-oriented filtering.

Security & Privacy

  • No recursion via third-party resolvers.
  • Strict DNSSEC validation to prevent tampering.
  • QNAME minimization is enforced for better privacy.
  • DNS leak/rebind protection
  • No EDNS Client Subnet, user location is not exposed to upstreams.
  • Drop ANY requests for improving server performance and enhancing privacy.
  • Rate limiting for response and clients.
  • Only encrypted transport: DNS-over-HTTPS (DoH/DoH3), DNS-over-TLS (DoT) and DNS-over-QUIC (DoQ)
  • No conventional DNS over port 53 to protect against DNS-based DDoS, amplification, spoofing, and cache poisoning.
  • Firewall: restricted to ports strictly necessary for operation.
  • OS & DNS software are regularly updated for latest security.
  • No logging or storage of individual queries per client.
  • No sharing of any data with third parties. If you don't log anything sharable, you can't share anything.

Logging and Data Handling

  • Hourly DNS statistics (processed and block domain rankings, per-client query counts) stored only in RAM, never written to disk and auto-deleted each hour or on service/server restart.
    (Query counts per client are solely for rate limiting, no linkage to resolved/blocked domains or other details)
  • Error logging: Only domains that fail to resolve (e.g., DNSSEC validation failure, upstream/server error, timeout - resulting in SERVFAIL) are logged, and those entries are retained for 24 hours for troubleshooting; no client IP addresses are stored.
  • Uses an in-memory DNS cache for enhanced privacy. No query data is ever written to disk, and all entries are automatically cleared when they expire or the server restarts.

Filtering

HaGeZi DNS employs a balanced blocking strategy to deliver robust privacy and security while minimizing unnecessary restrictions. This approach provides effective protection without excessive blocking, making it ideal for most users. The balance is achieved through the use of HaGeZi Multi Pro and HaGeZi Threat Intelligence Feed blocklists.

  • Block TTL: 3600
    Setting DNS block TTL to 3600 seconds (1 hour) reduces the frequency of repeated DNS requests for blocked domains. This lowers CPU and network activity on mobile devices, helping save battery life. The 3600 TTL balances caching efficiency and responsiveness, improving battery performance without sacrificing block update speed.

  • Block response: 0.0.0.0
    Blocked domains are answered with 0.0.0.0 instead of REFUSED/NXDOMAIN or 127.0.0.1. This makes connections fail immediately without local timeouts or retries in many apps, reducing unnecessary traffic.

Special domain handling:

  • Blocked Mozilla Firefox canary domain, answered with NXDOMAIN - prevents Mozilla Firefox from automatically switching to DNS-over-HTTPS in its settings.
  • Blocked Google Chrome preflight mode for prefetching, answered with NXDOMAIN - applies DNS filtering to resources preloaded via Chrome’s private prefetch proxy.
  • Allowed access to Apple iCloud Private Relay - supports macOS and iOS Mail Privacy Protection and Safari Tracking Prevention.

Server Locations & Access

Location Protocols Endpoint/URL Apple
Config
Recommended for
Germany, Falkenstein DoH/DoH3 https://root.hagezi.org/dns-query Link QR AT, BA, BE, BG, CH, CZ, DE, DK, FR, GB, HU, IE, IT, LU, NL, PL, RO, SI, SK
DoT/QUIC root.hagezi.org
Germany, Nuremberg DoH/DoH3 https://wurzn.hagezi.org/dns-query Link QR AT, BA, BE, BG, CH, CZ, DE, DK, ES, FR, GB, GR, HR, HU, IE, IT, LU, MD, MK, MT, NL, PL, PT, RO, RS, SI, SK, TR, UA
DoT/QUIC wurzn.hagezi.org
Finland, Helsinki DoH/DoH3 https://juuri.hagezi.org/dns-query Link QR DK, EE, FI, LT, LV, NO, SE
DoT/QUIC juuri.hagezi.org

EU and neighboring countries with limited coverage from current server locations: AD, CY, GE, IS, LI, MC, ME, PT, SM, TR

DNS Stamps

Note

These encrypted DNS Stamps let compatible tools connect to HaGeZi DNS automatically, with all the needed details built in.

Endpoint Protocol : DNS Stamp
root.hagezi.org DoH: sdns://AgMAAAAAAAAADjE4OC4zNC4xNjEuMjEwAA9yb290LmhhZ2V6aS5vcmcKL2Rucy1xdWVyeQ
DoT: sdns://AwMAAAAAAAAADjE4OC4zNC4xNjEuMjEwAA9yb290LmhhZ2V6aS5vcmc
DoQ: sdns://BAMAAAAAAAAADjE4OC4zNC4xNjEuMjEwAA9yb290LmhhZ2V6aS5vcmc
wurzn.hagezi.org DoH: sdns://AgMAAAAAAAAADTE1OS42OS4xNTUuOTQAEHd1cnpuLmhhZ2V6aS5vcmcKL2Rucy1xdWVyeQ
DoT: sdns://AwMAAAAAAAAADTE1OS42OS4xNTUuOTQAEHd1cnpuLmhhZ2V6aS5vcmc
DoQ: sdns://BAMAAAAAAAAADTE1OS42OS4xNTUuOTQAEHd1cnpuLmhhZ2V6aS5vcmc
juuri.hagezi.org DoH: sdns://AgMAAAAAAAAADTk1LjIxNy4xNjMuMTcAEGp1dXJpLmhhZ2V6aS5vcmcKL2Rucy1xdWVyeQ
DoT: sdns://AwMAAAAAAAAADTk1LjIxNy4xNjMuMTcAEGp1dXJpLmhhZ2V6aS5vcmc
DoQ: sdns://BAMAAAAAAAAADTk1LjIxNy4xNjMuMTcAEGp1dXJpLmhhZ2V6aS5vcmc

Latency

Tip

For a general idea of the latency between your location and our server locations, we recommend using WonderNetwork’s Global Ping Statistics.

Example of a WonderNetwork compilation configured for Germany:

Screenshot 2025-11-26 123938

To optimize latency when choosing DNS servers, you can personally measure the response times by pinging each DNS server from your own connection. This approach factors in your specific network conditions, such as geographic location, ISP routing, and local congestion, giving you a practical, real-world latency measurement. By selecting the DNS server with the lowest ping time, you maximize responsiveness and reduce DNS query delays for your devices or infrastructure.

Latency cheat sheet - This PDF summarizes measured network latency in milliseconds from six European PoPs (Amsterdam, Falkenstein, Frankfurt, Helsinki, Nürnberg, Vienna) to cities across European countries, highlighting the fastest location per city and EU membership status based on WonderNetwork ping data.

DNS resolution reference values (ms):

DNS resolve / lookup time (ms) Rating What it usually means
< 20 Excellent Very fast response, often due to a nearby resolver and/or a warm cache.
20–50 Very good Common target range for good user experience.
50–100 OK Usually fine, but can add noticeable delay if a page triggers many lookups.
100–120 Average Often cited as the upper end of “average” DNS lookup time.
120–200 Slow Suggests distance, routing/latency, resolver load, or extra resolution steps.
> 200 Very slow / problematic Frequently indicates a real performance or reachability issue (retries/timeouts/overload).

Expected IP addresses

  • 188.34.161.210 - 2a01:4f8:c17:1c66::1 (ptr: root.hagezi.org) - Hetzner Online GmbH - Falkenstein, Saxony, DE
  • 159.69.155.94 - 2a01:4f8:1c1c:d363::1 (ptr: wurzn.hagezi.org) - Hetzner Online GmbH - Nürnberg, Bavaria, DE
  • 95.217.163.17 - 2a01:4f9:c013:dc4e::1 (ptr: juuri.hagezi.org) - Hetzner Online GmbH/HOS-GUN - Helsinki, Uusimaa, FI

Note

By default, DNS servers internally prefer IPv4 when querying root servers. This forces upstream root queries to use IPv4 transport, which can cause diagnostic tools such as dnscheck.tools or browserleaks.com to show only IPv4 paths. However, client queries for both IPv4 (A) and IPv6 (AAAA) records remain unaffected due to full recursion.

If you see any IP addresses in your DNS leak test results other than those expected, it indicates that your device or network might be leaking DNS queries through fallback resolvers or directly to your ISP. This means DNS requests are bypassing your intended DNS protection, potentially exposing your browsing activity to external parties.

Web-based DNS testing services

Getting Help

Disclaimer / Privacy Policy (EU Compliance)

HaGeZi DNS is a non-commercial, publicly accessible DNS resolver service operated privately for the public benefit in the EU.

  • All servers are operated from data centers in the EU and fall under EU data protection laws, including EU General Data Protection Regulation (GDPR). User DNS traffic never leaves EU jurisdiction, and only encrypted protocols are offered to maximize privacy.
  • No personal data (such as user names, IP resolution logs, or query specifics linked to individuals) is collected, persisted, or shared with any third party. For operational integrity, temporary and anonymized query statistics are maintained for a maximum of one hour exclusively in memory, not on permanent storage. IP addresses are only ever processed for technical features such as query rate limiting and are not bindable to resolution data.
  • Error logs contain only metadata about DNS failures (domain, timestamp, error type, no client data).
  • No client data is ever sold or shared. All technical and policy guidelines align with the best practices of leading EU projects.
  • Service and server security are proactively maintained; software is kept up-to-date.
  • This is a best-effort, volunteer-provided service with no warranty, availability, or liability for interruptions or malfunctions. It is intended for private, lawful use only. Misuse, automated abuse, or attempts to circumvent restrictions may result in access being blocked.
  • This service is not affiliated with any commercial provider, government body, or the DNS4EU consortium.
  • Use of the service constitutes acceptance of these terms.

For privacy matters or to request information on data processing, contact privacy@hagezi.org.

Service operator: HaGeZi mail@hagezi.org - maintained by a private individual in accordance with Article 4 and 13/14 GDPR for non-commercial volunteer projects within the EU.