Skip to content

DNS configuration

Hako keeps DNS enabled inside Apple Packet Tunnel and routes TUN-hijacked queries into mihomo's resolver. Fake IP, DoH, DoT, policy resolution, fallback, hosts, and caches are handled by the core.

Practical guidance

  • Override nameserver only for a concrete need. A resolver can observe your queries, so use one you trust.
  • Desktop-dependent system: and dhcp: sources may be removed or repaired.
  • dns.listen opens a local service and is an advanced feature. Never expose it through allow-lan without explicit access control.
  • Resolver URLs, request headers, and authentication are sensitive data.

31 fields shown

FieldTypeiOSmacOStvOSPlatform notes
dns.cache-algorithmstringSupportedSupportedSupportedConsumed by the Hako core.
dns.cache-max-sizeintSupportedSupportedSupportedConsumed by the Hako core.
dns.default-nameserver[]stringManaged / limitedManaged / limitedManaged / limitedAccepted, but Hako may force, repair, split, or replace the value for Apple networking.
dns.direct-nameserver[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.direct-nameserver-follow-policyboolSupportedSupportedSupportedConsumed by the Hako core.
dns.enableboolManaged / limitedManaged / limitedManaged / limitedAccepted, but Hako may force, repair, split, or replace the value for Apple networking.
dns.enhanced-modeC.DNSModeSupportedSupportedSupportedConsumed by the Hako core.
dns.fake-ip-filter[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.fake-ip-filter-modeC.FilterModeSupportedSupportedSupportedConsumed by the Hako core.
dns.fake-ip-rangestringSupportedSupportedSupportedConsumed by the Hako core.
dns.fake-ip-range6stringSupportedSupportedSupportedConsumed by the Hako core.
dns.fake-ip-ttlintSupportedSupportedSupportedConsumed by the Hako core.
dns.fallback[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.fallback-filter.domain[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.fallback-filter.geoipboolSupportedSupportedSupportedConsumed by the Hako core.
dns.fallback-filter.geoip-codestringSupportedSupportedSupportedConsumed by the Hako core.
dns.fallback-filter.geosite[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.fallback-filter.ipcidr[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.fallback-lazy-queryboolSupportedSupportedSupportedConsumed by the Hako core.
dns.ipv6boolSupportedSupportedSupportedConsumed by the Hako core.
dns.ipv6-timeoutuintSupportedSupportedSupportedConsumed by the Hako core.
dns.listenstringAdvancedAdvancedAdvancedCan expose a listener or control surface. Use only with explicit access control and strong credentials.
dns.listen-routing-markintUnsupportedUnsupportedUnsupportedRemoved or not consumed in the Apple Packet Tunnel runtime.
dns.nameserver[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.nameserver-policy*orderedmap.OrderedMap[string, any]SupportedSupportedSupportedConsumed by the Hako core.
dns.prefer-h3boolSupportedSupportedSupportedConsumed by the Hako core.
dns.proxy-server-nameserver[]stringSupportedSupportedSupportedConsumed by the Hako core.
dns.proxy-server-nameserver-policy*orderedmap.OrderedMap[string, any]SupportedSupportedSupportedConsumed by the Hako core.
dns.respect-rulesboolSupportedSupportedSupportedConsumed by the Hako core.
dns.use-hostsboolSupportedSupportedSupportedConsumed by the Hako core.
dns.use-system-hostsboolSupportedSupportedSupportedConsumed by the Hako core.