]> git.kaiwu.me - haproxy.git/commit
MINOR: dns: select the nameserver server type explicitly
authorManu Nicolas <e.nicolas@criteo.com>
Tue, 1 Sep 2026 10:44:48 +0000 (10:44 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Sep 2026 11:40:48 +0000 (13:40 +0200)
commit2f6aabe9cdcf520d339ac72cb568f6f972a5c0e5
tree36ddcba740b34aabed375371261eef45f8476ab3
parent7c513681ddda5fa1b9929c2380c1278ed00ddcac
MINOR: dns: select the nameserver server type explicitly

DNS send, receive and response functions currently infer which server
to use from the non-null member of a nameserver. This is unambiguous
while a nameserver owns only one server, but prevents one logical
nameserver from exposing both datagram and stream servers.

Pass a dns_server_type through these interfaces and add predicates for
readable type checks. Existing queries still select the same server, so
this patch does not change runtime behavior.
include/haproxy/dns-t.h
include/haproxy/dns.h
src/dns.c
src/resolvers.c