]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: resolvers: Trigger a DNS resolution if an ADD item is obsolete
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Mar 2021 17:38:37 +0000 (18:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Mar 2021 16:41:28 +0000 (17:41 +0100)
commit3e0600fbbfee7daf957033505d56bc8dcc874185
treedc73178cca947c1d0055a28e5e4e1ddcd461369d
parent49531e8471a1c1ae9e1c7a6c1aeeb00713024beb
BUG/MEDIUM: resolvers: Trigger a DNS resolution if an ADD item is obsolete

When a ADD item attached to a SRV item is removed because it is obsolete, we
must trigger a DNS resolution to be sure the hostname still resolves or
not. There is no other way to be the entry is still valid. And we cannot set
the server in RMAINT immediatly, because a DNS server may be inconsitent and
may stop to add some additionnal records.

The opposite is also true. If a valid ADD item is still attached to a SRV
item, any DNS resolution must be stopped. There is no reason to perform
extra resolution in this case.

This patch must be backported as far as 2.2.
src/resolvers.c