跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[DNS] dns 的 ptr 请求在什么场景下会用到,直接屏蔽会不会有影响

发表于

为了实现 ipv4 优先,上了 mosdns ,查看日志中出现了很多 ptr 错误日志, 经过查询,这可能是 apple homekit 产生的,应该是只在内网生效,不应该转发到上游。

现在两个疑问请教一下各位彦祖

1.如果屏蔽所有的 ptr 请求,是否会对某些功能产生影响?

2.现在是在旁路由中启动的 mosdns ,如果把所有的 ptr 请求转发到主路由的原生 openwrt 中,还会不会往上游发送

// 错误日志
WARN	forward_local	upstream error	{"uqid": 31381, "qname": "_srpl-tls._tcp.openthread.thread.home.arpa.", "qclass": 1, "qtype": 12, "upstream": "https://120.53.53.53/dns-query", "error": "context deadline exceeded"}
// mosdns 配置

log:
  level: info
  file: "/var/log/mosdns.log"

plugins:
  # 转发至 DNS 服务器
  - tag: forward_local
    type: forward
    args:
      concurrent: 2
      upstreams:
        - addr: "https://223.6.6.6/dns-query"
        - addr: "https://120.53.53.53/dns-query"
    
  # PTR 黑名单 加入的域名将阻止 PTR 请求
  - tag: local_ptr
    type: domain_set
    args:
      files:
        - "/etc/mosdns/rule/local-ptr.txt"

  - tag: main
    type: sequence
    args:
      - matches: qname $local_ptr
        exec: reject 3
      - exec: prefer_ipv4
      - exec: cache 5000
      - exec: $forward_local

  # 启动 udp 服务器。
  - tag: udp_server
    type: udp_server
    args:
      entry: main
      listen: ":8338"

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.