Comments (12)
上游DNS下发的数据太长了,不符合协议规范了。DNS数据默认最长512字节的,有个RFC开启的话,最长也只有1200多字节。这里数据都12K了,不正常。
把上游DNS列表发出来看看。
from smartdns.
server 8.8.8.8
server 8.8.4.4
server 210.0.255.251
server 202.174.158.10
server 210.87.251.1
server 210.87.251.2
server 202.45.84.59
server 202.2.77.76
cache-size 5120
bind 0.0.0.0:1053
server-name smartdns
log-level debug
from smartdns.
拿hk-prof.np.community.playstation.net分别做了几个dig 测试 其中 有部份是返回475字节
是否是因为这类的cdn 产生的影响?
; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> hk-prof.np.community.playstation.net @210.0.255.251
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12491
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;hk-prof.np.community.playstation.net. IN A
;; ANSWER SECTION:
hk-prof.np.community.playstation.net. 3600 IN CNAME wildcard.np.community.playstation.net.edgekey.net.
wildcard.np.community.playstation.net.edgekey.net. 8562 IN CNAME e13555.b.akamaiedge.net.
e13555.b.akamaiedge.net. 300 IN A 23.57.112.134
;; Query time: 64 msec
;; SERVER: 210.0.255.251#53(210.0.255.251)
;; WHEN: Mon Oct 08 16:56:23 CST 2018
;; MSG SIZE rcvd: 175
; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> hk-prof.np.community.playstation.net @202.174.158.10
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26433
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 8, ADDITIONAL: 10
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;hk-prof.np.community.playstation.net. IN A
;; ANSWER SECTION:
hk-prof.np.community.playstation.net. 3600 IN CNAME wildcard.np.community.playstation.net.edgekey.net.
wildcard.np.community.playstation.net.edgekey.net. 11691 IN CNAME e13555.b.akamaiedge.net.
e13555.b.akamaiedge.net. 20 IN A 23.56.28.127
;; AUTHORITY SECTION:
b.akamaiedge.net. 3611 IN NS n5b.akamaiedge.net.
b.akamaiedge.net. 3611 IN NS n4b.akamaiedge.net.
b.akamaiedge.net. 3611 IN NS n0b.akamaiedge.net.
b.akamaiedge.net. 3611 IN NS n6b.akamaiedge.net.
b.akamaiedge.net. 3611 IN NS n3b.akamaiedge.net.
b.akamaiedge.net. 3611 IN NS n7b.akamaiedge.net.
b.akamaiedge.net. 3611 IN NS n2b.akamaiedge.net.
b.akamaiedge.net. 3611 IN NS n1b.akamaiedge.net.
;; ADDITIONAL SECTION:
n5b.akamaiedge.net. 3611 IN A 23.13.219.206
n0b.akamaiedge.net. 3611 IN A 88.221.81.192
n0b.akamaiedge.net. 3611 IN AAAA 2600:1480:e800::c0
n2b.akamaiedge.net. 3611 IN A 23.13.219.183
n7b.akamaiedge.net. 3611 IN A 184.84.239.185
n4b.akamaiedge.net. 3611 IN A 184.28.218.204
n3b.akamaiedge.net. 3611 IN A 23.13.219.190
n1b.akamaiedge.net. 3611 IN A 219.76.14.44
n6b.akamaiedge.net. 3611 IN A 23.13.219.189
;; Query time: 10 msec
;; SERVER: 202.174.158.10#53(202.174.158.10)
;; WHEN: Mon Oct 08 16:57:24 CST 2018
;; MSG SIZE rcvd: 475
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26979
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 8, ADDITIONAL: 10
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;hk-prof.np.community.playstation.net. IN A
;; ANSWER SECTION:
hk-prof.np.community.playstation.net. 3600 IN CNAME wildcard.np.community.playstation.net.edgekey.net.
wildcard.np.community.playstation.net.edgekey.net. 21600 IN CNAME e13555.b.akamaiedge.net.
e13555.b.akamaiedge.net. 20 IN A 23.57.112.134
;; AUTHORITY SECTION:
b.akamaiedge.net. 1271 IN NS n0b.akamaiedge.net.
b.akamaiedge.net. 1271 IN NS n1b.akamaiedge.net.
b.akamaiedge.net. 1271 IN NS n2b.akamaiedge.net.
b.akamaiedge.net. 1271 IN NS n3b.akamaiedge.net.
b.akamaiedge.net. 1271 IN NS n4b.akamaiedge.net.
b.akamaiedge.net. 1271 IN NS n5b.akamaiedge.net.
b.akamaiedge.net. 1271 IN NS n6b.akamaiedge.net.
b.akamaiedge.net. 1271 IN NS n7b.akamaiedge.net.
;; ADDITIONAL SECTION:
n0b.akamaiedge.net. 1271 IN A 88.221.81.192
n0b.akamaiedge.net. 1271 IN AAAA 2600:1480:e800::c0
n1b.akamaiedge.net. 1271 IN A 23.43.49.111
n2b.akamaiedge.net. 1271 IN A 23.43.49.108
n3b.akamaiedge.net. 1271 IN A 23.13.219.180
n4b.akamaiedge.net. 1271 IN A 23.43.49.132
n5b.akamaiedge.net. 1271 IN A 23.43.49.134
n6b.akamaiedge.net. 1271 IN A 23.55.46.118
n7b.akamaiedge.net. 1271 IN A 23.43.49.103
;; Query time: 9 msec
;; SERVER: 210.87.251.1#53(210.87.251.1)
;; WHEN: Mon Oct 08 16:58:12 CST 2018
;; MSG SIZE rcvd: 475
; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> hk-prof.np.community.playstation.net @202.2.77.76
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36801
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 8, ADDITIONAL: 10
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;hk-prof.np.community.playstation.net. IN A
;; ANSWER SECTION:
hk-prof.np.community.playstation.net. 3600 IN CNAME wildcard.np.community.playstation.net.edgekey.net.
wildcard.np.community.playstation.net.edgekey.net. 15082 IN CNAME e13555.b.akamaiedge.net.
e13555.b.akamaiedge.net. 20 IN A 23.57.112.134
;; AUTHORITY SECTION:
b.akamaiedge.net. 1709 IN NS n5b.akamaiedge.net.
b.akamaiedge.net. 1709 IN NS n6b.akamaiedge.net.
b.akamaiedge.net. 1709 IN NS n7b.akamaiedge.net.
b.akamaiedge.net. 1709 IN NS n0b.akamaiedge.net.
b.akamaiedge.net. 1709 IN NS n1b.akamaiedge.net.
b.akamaiedge.net. 1709 IN NS n2b.akamaiedge.net.
b.akamaiedge.net. 1709 IN NS n3b.akamaiedge.net.
b.akamaiedge.net. 1709 IN NS n4b.akamaiedge.net.
;; ADDITIONAL SECTION:
n0b.akamaiedge.net. 647 IN A 88.221.81.192
n0b.akamaiedge.net. 647 IN AAAA 2600:1480:e800::c0
n1b.akamaiedge.net. 647 IN A 23.13.219.196
n2b.akamaiedge.net. 647 IN A 184.50.87.159
n3b.akamaiedge.net. 647 IN A 23.43.49.125
n4b.akamaiedge.net. 647 IN A 23.43.49.111
n5b.akamaiedge.net. 647 IN A 23.43.49.103
n6b.akamaiedge.net. 647 IN A 23.43.49.124
n7b.akamaiedge.net. 647 IN A 23.43.49.108
;; Query time: 496 msec
;; SERVER: 202.2.77.76#53(202.2.77.76)
;; WHEN: Mon Oct 08 16:58:51 CST 2018
;; MSG SIZE rcvd: 475
from smartdns.
小于512字节就是正常的。看日志是可能收到了无效的DNS数据包数据,导致解析失败。
length is not enouth 270:14845
这个:号左边数字是收到的DNS包长度,后面这个数字是,压缩域名在DNS包内的偏移。
这个偏移已经超过该DNS包的大小了,属于无效数据,解析就失败了。
失败的时候,可能哪里有访问指针异常,segment fault,进程退出了。
我配置一下你的这几个DNS服务器看看。
from smartdns.
感谢
DNS来源于https://public-dns.info/
from smartdns.
我这测试没有法复现,你那里现在还出现吗?
from smartdns.
我已经停止使用这个了,因为一直崩。。。
我可以把下游dnsmasq的查询日志发给您,还有smartdns的配置文件
请问如何提交
from smartdns.
对了,还有个问题,
有没有可能 icmp的协议是直连 tcp的是绕路?
我跟据smartdns出来的结果,进行测试 香港阿里 到香港azure好像这样 绕路了。。。
因为时间有点久了 具体是哪个Ip需要再复查一下,但是 肯定有这类的情况。
from smartdns.
将配置写到这里吧。,这里可以贴附件的。
from smartdns.
Release18应该解决了这些问题,请取用测试。
如还有问题,请reopen issue
from smartdns.
大神;
日志里面经常提示这样的错误
[2020-03-25 20:02:55,410][ERROR][ dns_server.c:2909] dns server process failed.
[2020-03-25 20:03:34,437][ERROR][ dns_server.c:2909] dns server process failed.
[2020-03-25 20:03:39,367][ERROR][ dns_server.c:2909] dns server process failed.
[2020-03-25 20:06:05,504][ERROR][ dns_server.c:2909] dns server process failed.
[2020-03-25 20:09:06,037][ERROR][ fast_ping.c:660 ] create icmp socket failed, Address family not supported by protocol
[2020-03-25 20:09:06,037][ERROR][ fast_ping.c:1021] get addr by type failed, host: [2001:4860:4860:0000:0000:0000:0000:8844]
[2020-03-25 20:09:06,040][ERROR][ fast_ping.c:660 ] create icmp socket failed, Address family not supported by protocol
[2020-03-25 20:09:06,040][ERROR][ fast_ping.c:1021] get addr by type failed, host: [2001:4860:4860:0000:0000:0000:0000:8888]
from smartdns.
你设备不支持ipv6,禁用ipv6协议。
force-AAAA-soa yes
from smartdns.
Related Issues (20)
- 无法获取新域名的 HOT 18
- 【正则匹配】域名规则有没有可能支持正则配置?
- doh支持使用特定token限制访问
- 用户日志能否支持功能调用IP识别运营商接口nali或者纯真qqwry.dat库支持日志展示
- 定义了组名的服务器没有从默认组中排除 HOT 1
- 使用代理地址报错 HOT 4
- domain-set 能否增加实时监听 -file 文件变动,实现不需要重启服务即可添加新的域名?
- 给上游服务器组设置备用上游
- nameserver 规则对私有IPv4地址的PTR记录无效
- 能做到根据ipv4返回的地址,选择上游服务器并返回结果么(即根据ip分流) HOT 17
- SmartDNS是否可以支持多节点之间的配置同步?或者提供对应API&Cli? HOT 2
- `sendto fdbd:dc01:fe:1009::1, id 217, Permission denied` HOT 18
- 广告屏蔽 HOT 9
- 关于DNS缓存的一些问题 HOT 11
- 能否提供单独关闭DNS64的按钮或者指令,仅限制v6访问v6,v4访问v4,部分程序不支持转换访问 HOT 1
- 目前看文档提供给用户侧支持DoT、DoH还有H3 和 DoQ目前暂不支持,想咨询一下如何验证 HOT 5
- multiple server entries, what order? HOT 3
- Bug Report:SmartDNS crashes due to misaligned memory access in `fast_ping.c`. HOT 3
- 32GB of DoH traffic? HOT 6
- 阿里云 自己说了 限速了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartdns.