]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: dns: wrong DNS_MAX_UDP_MESSAGE value
authorBaptiste Assmann <bedis9@gmail.com>
Sat, 26 Mar 2016 14:09:48 +0000 (15:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Sep 2016 17:53:25 +0000 (19:53 +0200)
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

index 1b240fae4ce17819dc17fb2f9b6cbfa8b36e605a..19c6edcc6f6634e71cb4bc800d88577cbe2f2f9a 100644 (file)
@@ -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"