ID: 29337 Comment by: manuel at mausz dot at Reported By: php at to-the-max dot net Status: Assigned Bug Type: Feature/Change Request Operating System: FreeBSD PHP Version: 5.0.0 Assigned To: pollita New Comment:
I ran into the same problem yesterday. So I decided to modify the source to fallback to the deprecated ns_mkquery/ns_send if the newer functions aren't available. Patch for 5.3 and HEAD: http://manuel.mausz.at/coding/patches/php/5.3.0/php-5.3.0-dns_get_record.patch Tested on FreeBSD but should work on other BSDs and probably on OS X too. Previous Comments: ------------------------------------------------------------------------ [2004-08-02 11:08:39] [EMAIL PROTECTED] Assigning to the person who last touched this. ------------------------------------------------------------------------ [2004-07-22 19:30:31] php at to-the-max dot net Description: ------------ dns_get_record() is not available when PHP is compiled under BSD. /ext/standard/dns.c uses the res_nmkquery() and res_nsearch() functions present in newer versions of BIND's libresolv. However those functions are not present on *BSD (and probably other) systems. Please consider using the older res_mkquery(), res_search() fuctions, to maximize compatibility. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29337&edit=1
