php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68651 dns_get_record() empty $authorities
Submitted: 2014-12-25 07:02 UTC Modified: 2015-01-11 04:22 UTC
From: kevin at kevinguanchedarias dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.5.20 OS: Ubuntu 14.04
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: kevin at kevinguanchedarias dot com
New email:
PHP Version: OS:

 

 [2014-12-25 07:02 UTC] kevin at kevinguanchedarias dot com
Description:
------------
dns_get_record() not returning Authorities when using a reverse lookup

using dig command outputs the following 
--------------------------------------------

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37583
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;254.32.74.10.in-addr.arpa.     IN      A

;; AUTHORITY SECTION:
10.in-addr.arpa.        604800  IN      SOA     ns1.kevinguanchedarias.com. kevin.kevinguanchedarias.com. 1 604800 86400 2419200 604800


Note: Both dig PHP commands were used in the server
- The PHP version is 5.5.9-1ubuntu4.5

Test script:
---------------
dns_get_record('254.32.74.10.in-addr.arpa.',DNS_ANY,$autho);

Expected result:
----------------
$autho should have the authority record

Actual result:
--------------
$autho is NULL 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-28 18:50 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2014-12-28 18:50 UTC] kalle@php.net
Hi, is this also the case for 5.6/7.0?
 [2014-12-28 21:21 UTC] kevin at kevinguanchedarias dot com
I can confirm that it is happening too in 5.6.4
 [2015-01-11 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC