It does nothing for "reliable". It waits 1 second. If no response, it bails.
And the remote server thing just went out the window. I forgot to remove my SD card again, and you code does not disable it. It is working fine with my domain and a remote dns server.