Implement weighted distribution for terrasync server selection
test_DNS.cxx: use SERVICE and PROTOCOL constants, fix message
Replaced std::cerr output with SG_LOG Added SPDX license headers NOT changed to inline initializers to keep udns implementation untouched. I can change that after udns implementation has been removed
Use SG_LOG, add SPDX Header
Fix memory leak
They are already in place at naptr.test.flightgear.org and the test_DNS unit test queries those. Those fail with udns and work with c-ares. naptr.test.flightgear.org. 21600 IN NAPTR 2 2 "U" "test" "!^.*$!https://test_2_1/with/a/somewhat/longer-url-to-test/the/packet-size/limitation!" . naptr.test.flightgear.org. 21600 IN NAPTR 3 1 "U" "other-test" "!^.*$!https://test_3_1/with/a/somewhat/longer-url-to-test/the/packet-size/limitation!" . naptr.test.flightgear.org. 21600 IN NAPTR 1 1 "U" "test" "!^.*$!https://test_1_1/with/a/somewhat/longer-url-to-test/the/packet-size/limitation!"...
Implementation of c-ares DNS client
first working version of c-ares DNS client