Req #54821 [Com]: Add support for SPF records to dns_get_record
| From: | marcus at synchromedia dot co dot uk | Date: | Mon, 20 Jan 2014 10:33:29 +0000 |
| Subject: | Req #54821 [Com]: Add support for SPF records to dns_get_record | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183912@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54821&edit=1
ID: 54821
Comment by: marcus at synchromedia dot co dot uk
Reported by: agebosma at gmail dot com
Summary: Add support for SPF records to dns_get_record
Status: Open
Type: Feature/Change Request
Package: *Network Functions
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
This was previously the case, but there's been very little uptake of the new type (though still
significantly more than the dismal SenderID), and a new draft of RFC4408
(http://tools.ietf.org/html/draft-ietf-spfbis-4408bis-21#page-13) no longer recommends the separate
SPF type.
Of course I only found this out after I'd written a patch, so if you really want it,
you'll find it in my github fork: https://github.com/Synchro/php-src/tree/issue-54821.
The SPF type remains a defined RR type, so there's no particular harm in still supporting it as
some domains do publish it and PHP as it stands can't query them at all without this patch.
One alternative is to use php-dns, which does all kinds of dns wizardry, but it's a lot of code
just to get at this small feature. http://www.purplepixie.org/phpdns/
Previous Comments:
------------------------------------------------------------------------
[2011-05-18 13:28:09] agebosma at gmail dot com
Description:
------------
dns_get_record is quite handy for getting/checking DNS records of a specific domain. It, however,
lacks support for records of the type SPF.
There is no DNS_SPF type and the record gets excluded from the complete list of records.
I would like to request a change to the dns_get_record function to support records of the type SPF
as well.
See http://tools.ietf.org/html/rfc4408 for more
information on the record type.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54821&edit=1