Fix #53092 - dns_get_record does not return false on dns server failure

This aims to fix [bug 53092](https://bugs.php.net/bug.php?id=53092) by making `dns_get_record()` return `false` when an error has occurred during the query.

It's similar to its Windows counter part but it will not allow `DNS_ERROR_RCODE_NAME_ERROR`.
Should be "DNS query failed".