Comments (5)
Thank you for your issue. You can use the release version.
@selboo can you fix this issue.
from lua-resty-dns-server.
fix in a7fc349 . @andreaf74 @selboo
If you use the subnet feature, try again. @andreaf74
from lua-resty-dns-server.
Hello, I've tried the subnet feature branch but I got the same error (only on a different line) this time it happens even using a simple dig:
2019/07/23 13:51:25 [error] 8052#8052: *1250 lua entry thread aborted: runtime error: /usr/local/lib/lua/resty/dns/server.lua:286: bad argument #1 to 'lshift' (number expected, got nil)
stack traceback:
coroutine 0:
[C]: in function 'lshift'
/usr/local/lib/lua/resty/dns/server.lua:286: in function 'decode_request'
content_by_lua(nginx.conf:297):38: in main chunk, udp client: xxxxxxx:53 , server: xxxxxx:53
I believe the problem is because the code doesn't actually check the RDLEN size. (line 278)
If it is 0 it shouldn't go on with decoding..
I'll try to post a fix later..
Bye
from lua-resty-dns-server.
@andreaf74 Can you provide the version of dig, and parameters? In theory it can't happen, I guess it maybe need to second recv.
from lua-resty-dns-server.
按readme 中Synopsis 的说明搭建
执行 nslookup www.taobao.com 127.0.0.1 不会报错
而执行dig @127.0.0.1 www.taobao.com 出错
dig -v
DiG 9.10.6
出错信息
2019/11/28 18:53:11 [error] 503566#503566: *10 lua entry thread aborted: runtime error: /usr/local/openresty/lualib/resty/dns/server.lua:286: bad argument #1 to 'lshift' (number expected, got nil)
stack traceback:
coroutine 0:
[C]: in function 'lshift'
from lua-resty-dns-server.
Related Issues (7)
- 不支持 ANY 吗? HOT 1
- dig测试出错
- the edns maybe not success HOT 1
- Authoritative answers. HOT 1
- ipv6 简写地址 多了一个 "0" HOT 1
- ipv6 不支持多个 AAAA 地址
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 lua-resty-dns-server.