* PHP-7.4:
Fix bug #78008: dns_check_record() always return true on Alpine
#define php_dns_free_res(__res__)
#endif
-/* {{{ proto bool dns_check_record(string host [, string type])
- Check DNS records corresponding to a given Internet host name or IP address */
+/* {{{ Check DNS records corresponding to a given Internet host name or IP address */
PHP_FUNCTION(dns_check_record)
{
- #ifndef MAXPACKET
- #define MAXPACKET 8192 /* max packet size used internally by BIND */
- #endif
- u_char ans[MAXPACKET];
+ HEADER *hp;
+ querybuf answer;
char *hostname, *rectype = NULL;
size_t hostname_len, rectype_len = 0;
int type = DNS_T_MX, i;