]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dns: Handle SRV records.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 4 Aug 2017 16:35:36 +0000 (18:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Aug 2017 14:32:49 +0000 (16:32 +0200)
commit8da5f98fbe227f7fa619989867a942ac78e2a8f8
tree7d0deabc8ca8b5a8a4e919d63d4290d124c39a4d
parente962fd880dbd33fee0657ff0a071923c2e563766
MINOR: dns: Handle SRV records.

Make it so for each server, instead of specifying a hostname, one can use
a SRV label.
When doing so, haproxy will first resolve the SRV label, then use the
resulting hostnames, as well as port and weight (priority is ignored right
now), to each server using the SRV label.
It is resolved periodically, and any server disappearing from the SRV records
will be removed, and any server appearing will be added, assuming there're
free servers in haproxy.
include/proto/dns.h
include/proto/server.h
include/types/dns.h
include/types/proxy.h
include/types/server.h
src/cfgparse.c
src/dns.c
src/proxy.c
src/server.c