Bug #77695 [Com]: dns_get_record fails to provide authns info somewhere between 5.3.3 and 7.2
Edit report at https://bugs.php.net/bug.php?id=77695&edit=1
ID: 77695
Comment by: andrew at fw dot net dot nz
Reported by: jeff at zaf dot ca
Summary: dns_get_record fails to provide authns info
somewhere between 5.3.3 and 7.2
Status: Open
Type: Bug
Package: Network related
Operating System: CentOS 7
PHP Version: 7.3.2
Block user comment: N
Private report: N
New Comment:
Same issue, PHP 7.3.2 Ubuntu 16.04.
I tried on 5.5 as well, which also failed to provide the authns.
Previous Comments:
------------------------------------------------------------------------
[2019-03-05 14:34:35] jeff at zaf dot ca
Description:
------------
I'm using the example code found here: http://php.net/dns_get_record and not getting the expected
results.
Test script:
---------------
<?php
/* Request "ANY" record for php.net,
and create $authns and $addtl arrays
containing list of name servers and
any additional records which go with
them */
$result = dns_get_record("php.net", DNS_ANY, $authns, $addtl);
echo "Result = ";
print_r($result);
echo "Auth NS = ";
print_r($authns);
echo "Additional = ";
print_r($addtl);
?>
Expected result:
----------------
On PHP 5.3.3, it returns:
Auth NS = Array
(
[0] => Array
(
[host] => php.net
[type] => NS
[target] => dns4.easydns.info
[class] => IN
[ttl] => 300
)
[1] => Array
(
[host] => php.net
[type] => NS
[target] => dns3.easydns.org
[class] => IN
[ttl] => 300
)
[2] => Array
(
[host] => php.net
[type] => NS
[target] => dns1.easydns.com
[class] => IN
[ttl] => 300
)
[3] => Array
(
[host] => php.net
[type] => NS
[target] => dns2.easydns.net
[class] => IN
[ttl] => 300
)
)
Actual result:
--------------
On 7.3.2, it returns:
Auth NS = Additional =
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77695&edit=1
Thread (4 messages)