Problem in dns_get_record

From: Date: Wed, 21 Oct 2020 19:14:50 +0000
Subject: Problem in dns_get_record
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229846@lists.php.net to get a copy of this message
dns_get_record is returning arrays for  TXT records like
google-site-verification  and  v=spf1 redirects .

As far as I know this is not expected behaviour .

Anyone else faced this ?

Given below is the truncated response showing the relevant portions from
dns_get_record ("facebook.com", DNS_ALL )   :-

Formatted :-

facebook.com  IN  7200  TXT  v=spf1 redirect=_spf.facebook.com  Array
facebook.com  IN  7200  TXT
 google-site-verification=wdH5DTJTc9AYNwVunSVFeK0hYDGUIEOGb-RReU6pJlY
 Array
facebook.com  IN  7200  TXT
 google-site-verification=A2WZWCNQHrGV_TWwKh6KHY90tY0SHZo_RnyMJoDaG0s
 Array


Actual unformatted response :-

 [8] => Array ( [host] => facebook.com [class] => IN [ttl] => 7200 [type]
=> TXT [txt] => v=spf1 redirect=_spf.facebook.com [entries] => Array ( [0]
=> v=spf1 redirect=_spf.facebook.com ) ) [9] => Array ( [host] =>
facebook.com [class] => IN [ttl] => 7200 [type] => TXT [txt] =>
google-site-verification=wdH5DTJTc9AYNwVunSVFeK0hYDGUIEOGb-RReU6pJlY
[entries] => Array ( [0] =>
google-site-verification=wdH5DTJTc9AYNwVunSVFeK0hYDGUIEOGb-RReU6pJlY ) )
[10] => Array ( [host] => facebook.com [class] => IN [ttl] => 7200 [type]
=> TXT [txt] =>
google-site-verification=A2WZWCNQHrGV_TWwKh6KHY90tY0SHZo_RnyMJoDaG0s
[entries] => Array ( [0] =>
google-site-verification=A2WZWCNQHrGV_TWwKh6KHY90tY0SHZo_RnyMJoDaG0s ) )


Thanks

Hackerboy


Thread (1 message)

  • Ctskol09dw001 gmail
« previous php.bugs (#229846) next »