Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dns = require('dns')
- dns.setAddress('4d2e4c6c-b70b-42b0-85db-d3ea1b27b3c0') -- sets the DNS server address
- dns.setPort(42069) -- sets the DNS server port
- print(dns.lookup('tutorial')) -- looks up dns with server
- -- will return nil if there is no address corresponding to that dns
- -- will return false if the DNS server could not be reached
- -- will return string that contains the address for that DNS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement