|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, this is a weird situation I am facing. I am running a php script under IIS 5, configed with ASAPI. Specifically I'm using ldap_connect to connect to a fqdn on my local network. The server entry I'm trying to connect to rotates 3 physical addresses for the given server fqdn.
The problem is that php is randomly unable to pull an IP, thus causing the script to fail. My DNS servers are massive and redunant, so I am sure they are not going down. I can run this same code on the same host under Apache with no problems whatsoever. A rundown: Server: IIS 5, php 5.0.4 (ASAPI), Windows 2000 Sp4 Code: First try - PHP Code:
Second Try - PHP Code:
Things I know: -The reverse DNS IP entries for ldap.mydomain.com does not match the forward entry. But shouldn't since its rotating entries right? -Code works flawlessly on Apache with same php install -DNS Servers are up and running fine (ie, I can nslookup when this error occurs) Any ideas on what specifically could be causing PHP to choke under these conditions? I will probably cross post this to the PHP forum too, but I figured anyone with IIS expertise may know faster. Thanks in advanced for your help! |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > DNS lookup from PHP failing (gethostbyaddr and built in) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|