[PATCH] teach queryperf about SPF query type

David Coulthart davec at columbia.edu
Fri Aug 29 14:58:41 UTC 2008


On Aug 29, 2008, at 10:15 AM, David Coulthart wrote:
> Trying to feed queryperf a data set captured from a production
> authoritative nameserver, I received the following message:
> Query type not understood: SPF
>
> The attached patch updates queryperf.c (from 9.5.0-P2) to understand
> the SPF QTYPE (99) as described in RFC 4408.  It impacts a couple more
> lines than absolutely necessary b/c I tried to keep the formatting
> clean.

It looks like the attachment got stripped away somewhere.  Here it is  
copied & pasted into the email:

--- queryperf.c.orig	2008-08-29 10:03:19.391429000 -0400
+++ queryperf.c	2008-08-29 10:12:14.842932000 -0400
@@ -85,13 +85,15 @@
  #define QTYPE_STRINGS { \
  	"A", "NS", "MD", "MF", "CNAME", "SOA", "MB", "MG", \
  	"MR", "NULL", "WKS", "PTR", "HINFO", "MINFO", "MX", "TXT", \
-	"AAAA", "SRV", "NAPTR", "A6", "AXFR", "MAILB", "MAILA", "*", "ANY" \
+	"AAAA", "SRV", "NAPTR", "A6", "SPF", "AXFR", "MAILB", "MAILA", \
+	"*", "ANY" \
  }

  #define QTYPE_CODES { \
  	1, 2, 3, 4, 5, 6, 7, 8, \
  	9, 10, 11, 12, 13, 14, 15, 16, \
-	28, 33, 35, 38, 252, 253, 254, 255, 255 \
+	28, 33, 35, 38, 99, 252, 253, 254, \
+	255, 255 \
  }

  #define RCODE_STRINGS { \


More information about the bind-users mailing list