]> git.kaiwu.me - haproxy.git/commit
MEDIUM: server: add a global setting "unresolvable-server-fqdn"
authorWilly Tarreau <w@1wt.eu>
Sat, 21 Nov 2026 22:09:38 +0000 (23:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Nov 2026 14:31:50 +0000 (15:31 +0100)
commit6da41b95f41548e1e51a966374fb8827f340afac
tree0252716fa67b91de57ca55c8cc7243957e38b4a9
parent55803208c939a9d8d02d474f3c62e97ff8e49f65
MEDIUM: server: add a global setting "unresolvable-server-fqdn"

Recent fix 612b87e75 ("BUG/MEDIUM: resolvers: reject too long labels
when encoding a name") revealed deployment bugs where users are relying
on DNS labels longer than 63 chars, which have obviously never worked.

The problem is that before they would fail silently and now the config
refuses to start. When configs are orchestrated, often users have long
lost any control on what happens and only have to endure what their
orchestrator decides for them, so it can take ages before they figure
how to fix that.

This patch adds a global option to detect the situation at server
registration time, and to emit a warning and force the server to
maintenance instead of hard-failing. It is only meant to be used as a
workaround for the time it takes to fix the configuration, and must
never be left enabled since it will silently let broken configs start.

It will help to backport this patch where the commit above was backported,
i.e. 2.6, with a change to warn by default and indicating that this will
change in 3.5.
doc/configuration.txt
src/server.c