Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用内网DNS? #292

Open
genghisun opened this issue Apr 24, 2024 · 0 comments
Open

如何使用内网DNS? #292

genghisun opened this issue Apr 24, 2024 · 0 comments

Comments

@genghisun
Copy link

公司内网有自己的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 字节的数据:
请求超时。
请求超时。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant