diff --git a/dig.lua b/dig.lua new file mode 100644 index 0000000..900796b --- /dev/null +++ b/dig.lua @@ -0,0 +1,20 @@ +local args = { ... } + +rednet.open(modem_location) +receiverID = rednet.lookup("lns", lns_server) +current_time = os.time() + + +data = { + ["action"] = "lookup", + ["hostname"] = args[1] +} + +rednet.send(receiverID, data) + +while true do + id, msg = rednet.receive() + if id == receiverID then + io.write(msg .. "\n") + end +end \ No newline at end of file