This fixes some servers with long DNS queries or slow resolution not getting UDP queries correctly.
This only matters for the UDP case as it'll resolve the DNS each time a packet is sent, spending extra time or receiving an invalid/different record each time. TCP methods (ping) don't have this issue since they maintain the connection opened (so only one DNS resolution is made).
This fixes some servers with long DNS queries or slow resolution not getting UDP queries correctly.
This only matters for the UDP case as it'll resolve the DNS each time a packet is sent, spending extra time or receiving an invalid/different record each time. TCP methods (ping) don't have this issue since they maintain the connection opened (so only one DNS resolution is made).