1

I have been trying to get DNS results for bing.com using php:

<?php
$domain = 'bing.com';
$dns_results = dns_get_record($domain, DNS_ALL);
?>

The problem is that I get a php warning: Warning: dns_get_record() [function.dns-get-record]: Dns Query failed

This code works fine with other domains. And gethostbyname($domain) works fine. So why is this failing? What's special about Bing's DNS? and is there a workaround beyond suppressing the error using @dns_get_record?

4

0 回答 0