DNS Lookup kills board
Posted: Sun Nov 30, 2014 11:46 am
This is if I recall correctly the innards of one of the demo functions - without the function call - to get a DNS lookup.
sk=net.createConnection(net.TCP, 0)
sk:dns("www.bbc.co.uk",function(conn,ip)
print(ip)
end)
sk = nil
Instead of addr I've actually put the address in of a website.
If you run this maybe 10 times in a row - it forces the board to reboot.
sk=net.createConnection(net.TCP, 0)
sk:dns("www.bbc.co.uk",function(conn,ip)
print(ip)
end)
sk = nil
Instead of addr I've actually put the address in of a website.
If you run this maybe 10 times in a row - it forces the board to reboot.