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

ROS+CDNS怎么找不到DNS服务器 #4

Open
ailonei opened this issue Nov 30, 2022 · 3 comments
Open

ROS+CDNS怎么找不到DNS服务器 #4

ailonei opened this issue Nov 30, 2022 · 3 comments

Comments

@ailonei
Copy link

ailonei commented Nov 30, 2022

我是ROS搭的CDNS的,软路已经指向IP Cleardns,请问cdns里面的dns服务器是不是设置成127.0.0.1:5353就可以了,可是我打开网页总是说找不到dns服务器,要怎么搞哦

@dnomd343
Copy link
Owner

dnomd343 commented Dec 1, 2022

127.0.0.1:5353 是AdGuardHome的上游(即网页管理页面,该模块负责DNS广告屏蔽),该地址保持默认,无需修改。

ClearDNS的上游需要在YAML文件里面配置,上游配置示例如下:

# 国内DNS服务器
domestic:
  bootstrap: 223.5.5.5
  primary:
    - tls://dns.alidns.com
    - https://doh.pub/dns-query
  fallback:
    - 223.6.6.6
    - 119.29.29.29

# 国外DNS服务器(以下示例可能被墙)
foreign:
  bootstrap: 8.8.8.8
  primary:
    - tls://dns.google
    - https://dns.cloudflare.com/dns-query
  fallback:
    - 1.1.1.1
    - 8.8.4.4

你可以发送日志信息,将可以帮助定位到无法使用的原因。

@ailonei
Copy link
Author

ailonei commented Dec 2, 2022

在mikrotik ros下面的容器
time="2022-12-02 10:28:47" level=warning msg="Failed to connect to DNS upstream: dial udp 127.0.0.1:4053: i/o timeout"

2022/12/02 10:34:46.273547 [error] responding udp request: writing message: write udp [::]:53->192.168.5.8:46678: sendmsg: network is unreachable

@dnomd343
Copy link
Owner

dnomd343 commented Dec 4, 2022

127.0.0.1:4053 是国内组 DNS 请求的默认端口,查询超时意味着国内上游出现问题,可否提供一下完整的日志与配置文件?

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

2 participants