Bug #68651 [Com]: dns_get_record() empty $authorities

From: Date: Sun, 28 Dec 2014 21:21:23 +0000
Subject: Bug #68651 [Com]: dns_get_record() empty $authorities
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189267@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68651&edit=1

 ID:                 68651
 Comment by:         kevin at kevinguanchedarias dot com
 Reported by:        kevin at kevinguanchedarias dot com
 Summary:            dns_get_record() empty $authorities
 Status:             Feedback
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   Ubuntu 14.04
 PHP Version:        5.5.20
 Block user comment: N
 Private report:     N

 New Comment:

I can confirm that it is happening too in 5.6.4


Previous Comments:
------------------------------------------------------------------------
[2014-12-28 18:50:54] kalle@php.net

Hi, is this also the case for 5.6/7.0?

------------------------------------------------------------------------
[2014-12-25 07:02:54] 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 


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68651&edit=1


Thread (4 messages)

« previous php.bugs (#189267) next »