From 987e16d6f4b0cc4614cf87f4b849531d32312a2b Mon Sep 17 00:00:00 2001 From: Baptiste Assmann Date: Wed, 2 Nov 2016 22:23:31 +0100 Subject: [PATCH] MINOR: dns: implement extra 'hold' timers. This adds new "hold" timers : nx, refused, timeout, other. This timers will be used to tell HAProxy to keep an erroneous response as valid for the corresponding period. For now they're only configured, not enforced. --- doc/configuration.txt | 9 +++++++-- include/types/dns.h | 4 ++++ src/cfgparse.c | 19 ++++++++++++++++--- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index b5127d6382..147a9fbe7f 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11347,12 +11347,13 @@ nameserver : hold Defines during which the last name resolution should be kept based on last resolution - : last name resolution status. Only "valid" is accepted for now. + : last name resolution status. Acceptable values are "nx", + "other", "refused", "timeout", "valid". : interval between two successive name resolution when the last answer was in . It follows the HAProxy time format. is in milliseconds by default. - Default value is 10s for "valid". + Default value is 10s for "valid" and 30s for others. Note: since the name resolution is triggered by the health checks, a new resolution is triggered after modulo the parameter of @@ -11384,6 +11385,10 @@ timeout