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`.
@lstrojny Hmm, yes. That means I should probably fix that in the Windows code as well :)