Edit report at http://bugs.php.net/bug.php?id=50903&edit=1
ID: 50903 Comment by: luke dot hoezee at gmail dot com Reported by: ts at ambiweb dot de Summary: dns_get_record sends warnings Status: Open Type: Feature/Change Request Package: Feature/Change Request Operating System: debian lenny4 PHP Version: 5.2.12 New Comment: The way I worked around this was to first check the record using this function: checkdnsrr() That returns true or false. If it returns true then I get my results using dns_get_record(). However, I was getting the error you are showing for a domain that actually exists, but it was a parked domain. It came up with DNS settings for hostgator... So, I'm a little confused on that. But in any case, that worked for me. Previous Comments: ------------------------------------------------------------------------ [2010-02-01 23:20:42] ts at ambiweb dot de Description: ------------ if you check a non-existing domain you will get: Warning: dns_get_record() [function.dns-get-record]: res_nsend() failed in ... there is no way to validate if the domain does exist before calling dns_get_record(). Expected result: ---------------- the function should instead return an empty array. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=50903&edit=1