Git Product home page Git Product logo

Comments (5)

vislee avatar vislee commented on July 17, 2024

Thank you for your issue. You can use the release version.

@selboo can you fix this issue.

from lua-resty-dns-server.

vislee avatar vislee commented on July 17, 2024

fix in a7fc349 . @andreaf74 @selboo
If you use the subnet feature, try again. @andreaf74

from lua-resty-dns-server.

andreaf74 avatar andreaf74 commented on July 17, 2024

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.

vislee avatar vislee commented on July 17, 2024

@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.

zengjinji avatar zengjinji commented on July 17, 2024

按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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.