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)
- 如何理解address配置项末尾的-参数? HOT 2
- docker版本升级问题 HOT 3
- Smart dns with guest network HOT 1
- 请问如何cf只返回v4屏蔽v6 HOT 2
- 分组上游DNS不通了,验证分组里面的域名默认DNS无法提供解析 HOT 2
- 不支持设置 .uk 域名的IP地址 HOT 2
- smartdns 升级到46后,Server名字变成了127.0.0.1 如何改回smartdns名字? HOT 4
- 要不要加上这个ustc黑名单 HOT 2
- 测速模式配置优先级的问题 HOT 2
- domain-rule 不生效 HOT 1
- 为 UDP 的监听端口设置 `SO_REUSEADDR` HOT 17
- 现在是全局过滤type65吗 HOT 6
- Docker什么时候支持最新版本 HOT 1
- 请教luci设置和自定义配置里上游服务器优先级的问题 HOT 5
- server 8.8.8.8 -subnet [广东电信IP] 广东电信IP如何填写呀 HOT 1
- 这个参数值 意思是?dualstack-ip-selection-threshold HOT 9
- 我不知道smartDNS是否生效了 HOT 2
- 由45版本升级至46版本后,由规则组文件内引入的域名集合文件,域名指定server组解析不再生效 HOT 7
- 1.2024.v46.0.7-1.2024.v46.0.9上游设置为doh且经过socks5时,解析限速到大约10次/S HOT 3
- 测速模式和响应模式参数配置优先级问题 HOT 13
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.