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>
12 lines
372 B
Plaintext
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;
|