Benches macOS

1

PHP function checkdnsrr() and Mac OS X Leopard

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hey! there folks. I have come across a VERY strange problem.

Summary Mac OS X Leopard/AMP environment. PHP 5.2.6, MySQL 5.0.45, Apache 2.2.8

We have written a PHP application which utilizes the seemingly simple function checkdnsrr(). A PHP function designed to perform MX DNS lookups.

Only it isn't. Our PHP4 environment (Mac OS X Tiger/AMP) runs this perfectly. The new environment not so much. It's causing the script to terminate upon lookup.

One thing I am noticing is that the functionality isn't just restricted to checkdnsrr(), it is also failing on any other functions that executes a DNS lookup such as getmxrr(). This is too much of a coincidence that all DNS related functionality is no longer working. Something is clearly missing. PHP extension, INI setting, .conf setting, something. I strongly suspect it's network/communication, other functions from the SAME library work, except any DNS related functions.

This box, specifically relating to PHP, cannot DNS resolve. It suggests an inabililty for PHP and DNS to communicate.

Does anyone have any ideas, this has been baffling me for a couple of days.

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    orangekay

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'd tend to suspect your BIND installation. What error is actually being thrown at you?