1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/mail/qmail/files/extra-patch-dns-cname
Bryan Drewery 79a2bb25a8 - Add DNS_CNAME option to switch from using ANY queries, which was a hack
added many years ago for BIND 4. Using CNAME avoids excessive data in
  DNS query responses and temporary failures.

  This was already applied in spamcontrol.

  See also:
    http://homepage.ntlworld.com./jonathan.deboynepollard/Softwares/qmail/
    https://www.google.com/#q=CNAME_lookup_failed_temporarily

Submitted by:	Matt Simerson <matt@tnpi.net>
2014-06-20 03:17:04 +00:00

12 lines
372 B
Plaintext

--- dns.c Mon Jun 15 10:53:16 1998
+++ dns.c Wed Mar 5 11:31:13 2003
@@ -196,7 +196,7 @@
if (!sa->len) return loop;
if (sa->s[sa->len - 1] == ']') return loop;
if (sa->s[sa->len - 1] == '.') { --sa->len; continue; }
- switch(resolve(sa,T_ANY))
+ switch(resolve(sa,T_CNAME))
{
case DNS_MEM: return DNS_MEM;
case DNS_SOFT: return DNS_SOFT;