mihomo-kit/templates/dns/10-base.yaml
2026-10-25 20:01:07 +03:00

47 lines
1.4 KiB
YAML

dns:
enable: true
ipv6: false
respect-rules: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- '*.lan'
- '*.local' #@router
- '+.ru' #@!foreign
- '+.xn--p1ai' #@router,!foreign
- rule-set:ru-inside #@router,!foreign
# tailnet names: real 100.x addresses from MagicDNS (nameserver-policy below) #@tailscale
- '+.ts.net' #@tailscale
- '+.${@TS_DOMAINS}' #@tailscale
# own servers in the LAN (LOCAL_HOSTS): clients get the real LAN address #@local_hosts
- '+.${@LOCAL_DOMAINS}' #@local_hosts
default-nameserver:
- 77.88.8.8
- 1.1.1.1 #@router
- 223.5.5.5 #@mobile
proxy-server-nameserver:
- https://77.88.8.8/dns-query
direct-nameserver:
- 77.88.8.8 #@!foreign
- 77.88.8.1 #@!foreign
- 1.1.1.1 #@foreign
- 8.8.8.8 #@foreign
nameserver:
- https://1.1.1.1/dns-query #@router
- https://dns.google/dns-query
- https://1.1.1.1/dns-query #@mobile
# MagicDNS of the embedded Tailscale (the proxy named "tailscale") #@tailscale
nameserver-policy: #@tailscale
'+.ts.net': tailscale://tailscale #@tailscale
'+.${@TS_DOMAINS}': tailscale://tailscale #@tailscale
# LOCAL_HOSTS: own domains -> LAN addresses (dns.use-hosts is on by default), so neither #@local_hosts
# the core nor the clients go out to the white IP and back into the router itself #@local_hosts
hosts: #@local_hosts
${@@LOCAL_HOSTS_YAML} #@local_hosts