MAJOR: server: add DNS-based server name resolution
Relies on the DNS protocol freshly implemented in HAProxy.
It performs a server IP addr resolution based on a server hostname.
diff --git a/include/types/server.h b/include/types/server.h
index f987e25..4b44f22 100644
--- a/include/types/server.h
+++ b/include/types/server.h
@@ -205,6 +205,11 @@
struct check check; /* health-check specific configuration */
struct check agent; /* agent specific configuration */
+ char *resolvers_id; /* resolvers section used by this server */
+ char *hostname; /* server hostname */
+ struct dns_resolution *resolution; /* server name resolution */
+ int resolver_family_priority; /* which IP family should the resolver use when both are returned */
+
#ifdef USE_OPENSSL
int use_ssl; /* ssl enabled */
struct {