I've seen somewhere on the forums that it was not recommended to do something like this, I think it was Immibis' signature, but doing this doesn't fix the problem anyways.

The issue is that on startup, it only sends a dns message, without sending a request to "example.com".
Adding a os.sleep(0) there is the only thing that made it work for me so far.