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

指定address配置时,仍然对上游服务器请求dns解析 #281

Closed
unicser opened this issue Dec 21, 2019 · 1 comment
Closed

指定address配置时,仍然对上游服务器请求dns解析 #281

unicser opened this issue Dec 21, 2019 · 1 comment

Comments

@unicser
Copy link

unicser commented Dec 21, 2019

问题现象
指定address配置时,仍然对上游服务器请求dns解析

运行环境

  1. 固件型号
    Openwrt 18.06

  2. 运营商
    N/A

重现步骤

  1. DNS配置
    server 114.114.114.114
    server 180.76.76.76
    server 223.5.5.5
    server 119.29.29.29
    address /test.lan/10.10.10.10

  2. 尝试解析test.lan,结果如下
    $ host test.lan 192.168.1.1
    Using domain server:
    Name: 192.168.1.1
    Address: 192.168.1.1#53
    Aliases:

test.lan has address 10.10.10.10
Host test.lan not found: 3(NXDOMAIN)
Host test.lan not found: 3(NXDOMAIN)

  1. 在192.168.1.1抓包 tcpdump -pni ppp0 udp port 53,可以看到类似如下结果
    13:03:58.945034 IP 115.193.142.117.28121 > 119.29.29.29.53: 519+ [1au] AAAA? test.lan. (36)
    13:03:58.945199 IP 115.193.142.117.36664 > 223.5.5.5.53: 519+ [1au] AAAA? test.lan. (36)
    13:03:58.945283 IP 115.193.142.117.17538 > 180.76.76.76.53: 519+ [1au] AAAA? test.lan. (36)
    13:03:58.945344 IP 115.193.142.117.51248 > 114.114.114.114.53: 519+ [1au] AAAA? test.lan. (36)
    13:03:58.954150 IP 223.5.5.5.53 > 115.193.142.117.36664: 519 NXDomain 0/1/0 (100)
    13:03:58.954551 IP 180.76.76.76.53 > 115.193.142.117.17538: 519 NXDomain 0/1/1 (111)
    13:03:58.955956 IP 115.193.142.117.28121 > 119.29.29.29.53: 520+ [1au] MX? test.lan. (36)
    13:03:58.956035 IP 115.193.142.117.36664 > 223.5.5.5.53: 520+ [1au] MX? test.lan. (36)
    13:03:58.956090 IP 115.193.142.117.17538 > 180.76.76.76.53: 520+ [1au] MX? test.lan. (36)
    13:03:58.956181 IP 115.193.142.117.51248 > 114.114.114.114.53: 520+ [1au] MX? test.lan. (36)
    13:03:58.957686 IP 114.114.114.114.53 > 115.193.142.117.51248: 519 NXDomain 0/1/1 (111)
    13:03:58.965686 IP 180.76.76.76.53 > 115.193.142.117.17538: 520 NXDomain 0/1/1 (111)
    13:03:58.965948 IP 223.5.5.5.53 > 115.193.142.117.36664: 520 NXDomain 0/1/0 (100)
    13:03:58.968317 IP 114.114.114.114.53 > 115.193.142.117.51248: 520 NXDomain 0/1/1 (111)
    13:03:59.020555 IP 119.29.29.29.53 > 115.193.142.117.28121: 520 NXDomain 0/1/1 (111)
    13:03:59.030315 IP 119.29.29.29.53 > 115.193.142.117.28121: 519 NXDomain 0/1/1 (111)

信息收集
N/A

@pymumu
Copy link
Owner

pymumu commented Dec 21, 2019

IPV6的仍然会查询上游,配置
address /test.lan/#6

@pymumu pymumu closed this as completed Dec 21, 2019
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