Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pastebin get yAvZEUUe dig.lua
- request = {...}
- peripheral.find("modem", rednet.open)
- if #request < 2 then
- print("usage: dig <id/name> <request>")
- return 0
- end
- rednet.broadcast(request, "dns-querry")
- dnsServerID, response = rednet.receive("dns-answer")
- print(response)
Advertisement
Add Comment
Please, Sign In to add comment