From d20bbaf093853efb189b43dcc215f313e5900f2d Mon Sep 17 00:00:00 2001 From: Baptiste Assmann Date: Sat, 26 Mar 2016 15:09:48 +0100 Subject: [PATCH] MINOR: dns: wrong DNS_MAX_UDP_MESSAGE value Current implementation of HAProxy's DNS resolution expect only 512 bytes of data in the response. Update DNS_MAX_UDP_MESSAGE to match this. Backport: can be backported to 1.6 --- include/types/dns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/types/dns.h b/include/types/dns.h index 1b240fae4..19c6edcc6 100644 --- a/include/types/dns.h +++ b/include/types/dns.h @@ -30,7 +30,7 @@ */ #define DNS_MAX_LABEL_SIZE 63 #define DNS_MAX_NAME_SIZE 255 -#define DNS_MAX_UDP_MESSAGE 4096 +#define DNS_MAX_UDP_MESSAGE 512 /* DNS error messages */ #define DNS_TOO_LONG_FQDN "hostname too long"