13 lines
213 B
Lua
13 lines
213 B
Lua
local args = { ... }
|
|
|
|
if args[1] == nil then
|
|
print("Usage: dig <hostname>")
|
|
return
|
|
end
|
|
|
|
result = lns.lookup(args[1])
|
|
if result == nil then
|
|
io.write("Not found!\n")
|
|
else
|
|
io.write(result .. "\n")
|
|
end |