From 8e2d9430c0562ed74276d7f58e92706c384c0a36 Mon Sep 17 00:00:00 2001 From: Baptiste Assmann Date: Fri, 22 Jun 2018 15:04:43 +0200 Subject: [PATCH] MINOR: dns: new DNS options to allow/prevent IP address duplication By default, HAProxy's DNS resolution at runtime ensure that there is no IP address duplication in a backend (for servers being resolved by the same hostname). There are a few cases where people want, on purpose, to disable this feature. This patch introduces a couple of new server side options for this purpose: "resolve-opts allow-dup-ip" or "resolve-opts prevent-dup-ip". --- doc/configuration.txt | 34 ++++++++++++++++++++++++++++++++++ include/types/dns.h | 2 ++ src/dns.c | 6 +++++- src/server.c | 27 +++++++++++++++++++++++++++ 4 files changed, 68 insertions(+), 1 deletion(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index e901d7eeaf..b443de661b 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11682,6 +11682,40 @@ rise after consecutive successful health checks. This value defaults to 2 if unspecified. See also the "check", "inter" and "fall" parameters. +resolve-opts