Problem in dns_get_record
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