php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54821 Add support for SPF records to dns_get_record
Submitted: 2011-05-18 13:28 UTC Modified: 2021-08-30 14:38 UTC
Votes:10
Avg. Score:4.5 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:6 (66.7%)
Same OS:3 (33.3%)
From: agebosma at gmail dot com Assigned: cmb (profile)
Status: Wont fix Package: *Network Functions
PHP Version: 5.3.6 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: agebosma at gmail dot com
New email:
PHP Version: OS:

 

 [2011-05-18 13:28 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-20 10:33 UTC] marcus at synchromedia dot co dot uk
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/
 [2021-08-30 14:38 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-30 14:38 UTC] cmb@php.net
> […], and a new draft of RFC4408 […] no longer recommends the
> separate SPF type.

And RFC 7208, which obsoletes RFC 4408, follows suit[1], so I
think we can close this feature request as WONTFIX, especially
since there is already request #65343.

[1] <https://datatracker.ietf.org/doc/html/rfc7208#section-3>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC