Left here for archival purposes.

User avatar
By scargill
#3623 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.
User avatar
By GeoNomad
#4119 I have resolved some net. reboot issues by adding a net.close() here and there.

I suspect there are open connections waiting for a response sometimes.

I have seen the DNS FAILED! response, but not that often, even when DNS did fail.

What are the timeout parameters on the net functions? Can we change them?