Added new package

This commit is contained in:
2025-11-05 23:35:45 +01:00
parent 8cea5151b0
commit d518637947
8 changed files with 188 additions and 100 deletions

14
usr/bin/dns.lua Normal file
View File

@@ -0,0 +1,14 @@
local ocdns = require("ocdns")
local name = ...
if not name then
io.stderr:write("Usage: resolve <hostname>\n")
return
end
local uuid, err = ocdns.resolve(name)
if uuid then
print(uuid)
else
print("error:", err)
end