]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dns: update record dname matching for SRV query types
authorBaptiste Assmann <bedis9@gmail.com>
Fri, 11 Aug 2017 08:31:22 +0000 (10:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Aug 2017 09:24:45 +0000 (11:24 +0200)
commitddc8ce6d29eb131bcb8f864b5bda46b78e4e42e6
treeb8faa1c79633429ec437b50b0342f4b1e6e6862e
parent251abb9cbe894411856d0f9da7637ea62c0740ba
MINOR: dns: update record dname matching for SRV query types

DNS response for SRV queries look like this:
- query dname looks like '_http._tcp.red.default.svc.cluster.local'
- answer record dname looks like
  '3336633266663038.red.default.svc.cluster.local.'

Of course, it never matches... and it triggers many false positive in
the current code (which is suitable for A/AAAA/CNAME).

This patch simply ignores this dname matching in the case of SRV query
type.
src/dns.c