Skip to content

Instantly share code, notes, and snippets.


YuanSheng Wang membphis

  • Zhuhai, China
View GitHub Profile
agentzh / dns_server.lua
Created August 18, 2016 19:33
My first hacked version of silly Lua DNS server atop NGINX (with patched ngx_stream_lua_module).
View dns_server.lua
local bit = require "bit"
local byte = string.byte
local lshift = bit.lshift
local rshift = bit.rshift
local concat = table.concat
local insert = table.insert
local char = string.char
local band =
local sub = string.sub
local gsub = string.gsub