Skip to main content

DoH JSON Health Check

DNS-MNS supports checking DNS resolver health using JSON-based DNS over HTTPS (DoH) APIs. This feature implements RFC 8427 (JSON-encoded DNS queries) and is particularly useful for users in Iran who need to verify if specific DoH resolvers are accessible.

What is JSON DoH?

Unlike standard DoH which uses binary DNS messages in the HTTP body (RFC 8484), JSON DoH uses JSON format for DNS queries and responses. This makes it:
  • Easier to debug - Human-readable JSON format
  • Cross-platform - Works with any HTTP client
  • Lightweight - Simple GET requests with query parameters

Usage

Interactive Mode

From the main menu:
  1. Select [3] Encrypted DNS
  2. Select [5] DoH JSON Health Check
  3. Enter the resolver URL (or press Enter for default)
  4. Select record type (A, AAAA, MX, TXT)
  5. Enter domains to check (comma-separated)

CLI Mode

Default Resolver

The default resolver is https://dns.theazizi.ir/dns-query, which is designed to work well in Iran.

Record Types

Understanding Results

Successful Query

NXDOMAIN (Domain Not Found)

This means the resolver is working, but the domain doesn’t exist.

Failed Query

This indicates the resolver is not accessible or blocked.

JSON Output Format

When using --json, the output includes:

Alternative Resolvers

You can use any RFC 8427-compatible resolver:
Many popular DoH resolvers may be blocked in Iran. If the default resolver doesn’t work, try using a VPN or finding alternative resolvers.

Troubleshooting

”request failed: timeout”

  • Check your internet connection
  • The resolver may be blocked - try a different one
  • Try using a VPN

”HTTP 403” or “HTTP 451”

  • The resolver is accessible but refusing requests
  • This may indicate blocking or rate limiting

Empty answers with Status 0

  • The domain exists but the resolver returned no records
  • The domain may be blocked at the resolver level
  • Try a different resolver

Use Cases

Verify Resolver Connectivity

Quick check if the default resolver is working.

Test Multiple Domains

Check if commonly blocked domains are accessible through the resolver.

Compare Resolvers

Compare performance and accessibility of different resolvers.

IPv6 Support Check

Check if IPv6 resolution is working through the resolver.

Privacy Considerations

When using a DoH resolver, the resolver operator can see your DNS queries. Choose a resolver with a privacy policy you trust. The default resolver (dns.theazizi.ir) is designed for Iranian users but you should review its privacy policy.

Technical Details

RFC 8427 Format

The tool sends HTTP GET requests with query parameters:

Response Format

Status Codes