super3td Posted October 8, 2008 Share Posted October 8, 2008 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(). 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. (Returns blank screen rather than continues the script). 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. Quote Link to comment https://forums.phpfreaks.com/topic/127592-php-function-checkdnsrr-and-mac-os-x-leopard/ Share on other sites More sharing options...
sKunKbad Posted October 8, 2008 Share Posted October 8, 2008 Sounds like your DNS is messed up. I run a linux server, and it is unix-like, same as OSX. Check your files: /etc/hosts /etc/resolv.conf Post the contents here if necessary. Quote Link to comment https://forums.phpfreaks.com/topic/127592-php-function-checkdnsrr-and-mac-os-x-leopard/#findComment-660185 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.