[ldns-users] [request] SPF RR support
SUZUKI Takahiko
takahiko at iij.ad.jp
Wed Feb 11 13:49:07 UTC 2009
Hi,
I have a request for support SPF RR.
As you probably know, SPF RR is defined in RFC4408, and listed in IANA
Registry:
http://www.ietf.org/rfc/rfc4408.txt
http://www.iana.org/assignments/dns-parameters
The format of SPF RR is the same as TXT RR (see RFC4408 3.1.1. DNS
Resource Record Types). I've tried to make a patch to support SPF RR,
but I don't know that this patch is sufficient or not.
I attached the patch.
Please try this.
Regards,
Takahiko
--
SUZUKI Takahiko <takahiko at iij.ad.jp>
Development and Operation Section,
Messaging Service Division,
Internet Initiative Japan Inc.
-------------- next part --------------
diff -ur ldns-1.5.1.orig/ldns/rr.h ldns-1.5.1/ldns/rr.h
--- ldns-1.5.1.orig/ldns/rr.h 2008-11-05 19:00:32.000000000 +0900
+++ ldns-1.5.1/ldns/rr.h 2009-02-11 21:49:33.261429097 +0900
@@ -175,6 +175,9 @@
LDNS_RR_TYPE_NSEC3 = 50,
LDNS_RR_TYPE_NSEC3PARAMS = 51,
+ /** RFC4408 */
+ LDNS_RR_TYPE_SPF = 99,
+
LDNS_RR_TYPE_UINFO = 100,
LDNS_RR_TYPE_UID = 101,
LDNS_RR_TYPE_GID = 102,
diff -ur ldns-1.5.1.orig/libdns.vim ldns-1.5.1/libdns.vim
--- ldns-1.5.1.orig/libdns.vim 2006-07-04 21:50:41.000000000 +0900
+++ ldns-1.5.1/libdns.vim 2009-02-11 21:49:33.261815925 +0900
@@ -231,6 +231,7 @@
syn keyword ldnsConstant LDNS_RR_TYPE_A6
syn keyword ldnsConstant LDNS_RR_TYPE_SINK
syn keyword ldnsConstant LDNS_RR_TYPE_IPSECKEY
+syn keyword ldnsConstant LDNS_RR_TYPE_SPF
syn keyword ldnsConstant LDNS_RR_TYPE_UINFO
syn keyword ldnsConstant LDNS_RR_TYPE_UID
syn keyword ldnsConstant LDNS_RR_TYPE_GID
diff -ur ldns-1.5.1.orig/rr.c ldns-1.5.1/rr.c
--- ldns-1.5.1.orig/rr.c 2009-02-03 18:17:32.000000000 +0900
+++ ldns-1.5.1/rr.c 2009-02-11 21:49:33.262990460 +0900
@@ -1950,7 +1950,8 @@
{LDNS_RR_TYPE_NULL, "TYPE96", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE97", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE98", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
-{LDNS_RR_TYPE_NULL, "TYPE99", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
+ /* 99 */
+ {LDNS_RR_TYPE_SPF, "SPF", 1, 0, NULL, LDNS_RDF_TYPE_STR, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE100", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE101", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
{LDNS_RR_TYPE_NULL, "TYPE102", 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE, LDNS_RR_NO_COMPRESS, 0 },
More information about the ldns-users
mailing list