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 and adds a few useful warning messages when a request fails.