From: Baptiste Assmann Date: Sat, 26 Mar 2016 14:09:48 +0000 (+0100) Subject: MINOR: dns: wrong DNS_MAX_UDP_MESSAGE value X-Git-Tag: v1.7-dev5~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d20bbaf093853efb189b43dcc215f313e5900f2d;p=thirdparty%2Fhaproxy.git 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 --- diff --git a/include/types/dns.h b/include/types/dns.h index 1b240fae4c..19c6edcc6f 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"