Permalink
Browse files

#17673 added new SPF record

git-svn-id: http://svn.php.net/repository/pear/packages/Net_DNS/trunk@302014 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 6d63b13 commit 3260ef52f6f2a3d1fe87de0a06a61c2fc8045fe3 @bate bate committed Aug 9, 2010
Showing with 50 additions and 0 deletions.
  1. +3 −0 Net/DNS.php
  2. +47 −0 Net/DNS/RR/SPF.php
View
@@ -280,6 +280,7 @@ function rcodesbyval($rcodeval)
* <li>ATMA
* <li>NAPTR
* <li>TSIG
+ * <li>SPF
* <li>UINFO
* <li>UID
* <li>GID
@@ -333,6 +334,7 @@ function typesbyname($rrtype)
'SRV' => 33,
'ATMA' => 34,
'NAPTR' => 35,
+ 'SPF' => 99,
'UINFO' => 100,
'UID' => 101,
'GID' => 102,
@@ -399,6 +401,7 @@ function typesbyval($rrtypeval)
33 => 'SRV',
34 => 'ATMA',
35 => 'NAPTR',
+ 99 => 'SPF',
100 => 'UINFO',
101 => 'UID',
102 => 'GID',
View
@@ -0,0 +1,47 @@
+<?php
+/**
+* License Information:
+*
+* Net_DNS: A resolver library for PHP
+* Copyright (c) 2002-2003 Eric Kilfoil eric@ypass.net
+* Maintainers:
+* Marco Kaiser <bate@php.net>
+* Florian Anderiasch <fa@php.net>
+* Mike Pultz <mike@mrhost.ca>
+*
+* PHP versions 4 and 5
+*
+* LICENSE: This source file is subject to version 3.01 of the PHP license
+* that is available through the world-wide-web at the following URI:
+* http://www.php.net/license/3_01.txt. If you did not receive a copy of
+* the PHP License and are unable to obtain it through the web, please
+* send a note to license@php.net so we can mail you a copy immediately.
+*/
+
+/* Net_DNS_RR_SPF definition {{{ */
+/**
+ * A representation of a resource record of type <b>SPF</b>
+ *
+ * @package Net_DNS
+ */
+class Net_DNS_RR_SPF extends Net_DNS_RR_TXT
+{
+
+ //
+ // There's no work to be done here, since the SPF RR is identical to the TXT RR- we
+ // just extend the Net_DNS_RR_TXT record class and inherit everything.
+ //
+
+}
+/* }}} */
+/* VIM settings {{{
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * soft-stop-width: 4
+ * c indent on
+ * End:
+ * vim600: sw=4 ts=4 sts=4 cindent fdm=marker et
+ * vim<600: sw=4 ts=4
+ * }}} */
+?>

0 comments on commit 3260ef5

Please sign in to comment.