]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: provide a getaddrinfo wrapper 17134/head
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Apr 2025 12:51:49 +0000 (14:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 Apr 2025 21:48:02 +0000 (23:48 +0200)
commite0ebc3ff134902b7ab2e1dcaa7bc18a561caa8d8
tree2dd053a72ba7773d3ec06b96ef9ce8f881daf68a
parentda33c1e349d3289d6af3d0458cf4ae9eeba52b38
lib: provide a getaddrinfo wrapper

This uses c-ares under the hood and supports the CURL_DNS_SERVER
environment variable - for debug builds only. The getaddrinfo()
replacement function is only used if CURL_DNS_SERVER is set to make a
debug build work more like a release version without the variable set.

'override-dns' is a new feature for the test suite when curl can be told
to use a dedicated DNS server, and test 2102 is the first to require
this.

Requires c-ares 1.26.0 or later.

Closes #17134
lib/Makefile.inc
lib/curl_addrinfo.c
lib/fake_addrinfo.c [new file with mode: 0644]
lib/fake_addrinfo.h [new file with mode: 0644]
src/curlinfo.c
tests/FILEFORMAT.md
tests/README.md
tests/data/test2102