]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: resolvers: add command-line argument -4 to force IPv4-only DNS
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 14:31:47 +0000 (16:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 15:52:28 +0000 (17:52 +0200)
commit2c46c2c042127c60a5efbd7a5304a36624f32786
treedca20a739e4c415303fe45ebd0a871b4fcc62b81
parent940fa19ad8e63d3dc4398ee9a0a2cad28fa5203d
MINOR: resolvers: add command-line argument -4 to force IPv4-only DNS

In order to ease troubleshooting and testing, the new "-4" command line
argument enforces queries and processing of "A" DNS records only, i.e.
those representing IPv4 addresses. This can be useful when a host lack
end-to-end dual-stack connectivity. This overrides the global
"dns-accept-family" directive and is equivalent to value "ipv4".
doc/management.txt
include/haproxy/resolvers-t.h
src/haproxy.c
src/resolvers.c