MEDIUM: dns: add a "resolve-net" option which allow to prefer an ip in a network
authorThierry Fournier <tfournier@arpalert.org>
Wed, 17 Feb 2016 21:05:30 +0000 (22:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Feb 2016 13:37:49 +0000 (14:37 +0100)
commitac88cfe45245b709e987187abaa2c2b68fc16c2f
treeaefa68b8f6c1f7a23f0df64732e5f8e898f20937
parentada348459f7f647e896317014bb99583d14f33a4
MEDIUM: dns: add a "resolve-net" option which allow to prefer an ip in a network

This options prioritize th choice of an ip address matching a network. This is
useful with clouds to prefer a local ip. In some cases, a cloud high
avalailibility service can be announced with many ip addresses on many
differents datacenters. The latency between datacenter is not negligible, so
this patch permitsto prefers a local datacenter. If none address matchs the
configured network, another address is selected.
doc/configuration.txt
include/types/dns.h
include/types/server.h
src/dns.c
src/server.c