shawn1m / overture

A customized DNS relay server
MIT License
1.79k stars 284 forks source link

如何使用内网DNS? #292

Open genghisun opened 2 months ago

genghisun commented 2 months ago

公司内网有自己的dns服务器,用公用的DNSPod无法解析,我把primaryDNS设置为了内网的dns,还把内网域名写入了domain_primary_sample,都还是无法解析,config.yaml配置如下:

primaryDNS:
  - name: LAN
    address: 10.x.x.x:53
  # - name: DNSPod
  #   address: 119.29.29.29:53
    protocol: udp
    socks5Address:
    timeout: 6
    ednsClientSubnet:
      policy: disable
      externalIP:
      noCookie: true
...
domainFile:
  primary: ./domain_primary_sample
  alternative: ./domain_alternative_sample
  # matcher: full-map
  matcher: suffix-tree

前后ping的区别如下:

> ping xxx.inc.com
正在 Ping xxx.inc.com [10.x.x.x] 具有 32 字节的数据:
来自 10.x.x.x 的回复: 字节=32 时间=23ms TTL=59
来自 10.x.x.x 的回复: 字节=32 时间=17ms TTL=59

> ping xxx.inc.com
正在 Ping xxx.inc.com [210.x.x.x] 具有 32 字节的数据:
请求超时。
请求超时。