We had DNS problem in the past with one of our web application coded in php Therefore we used IP addresses instead of the server name and we used HOST file and decided to perform a crash test
When our DNS server is working our web application works fine. However when we switch off our DNS server the code stops working at this line
$bdd = new PDO('mysql:host=139.XXX.XXX.XXX', 'username', 'pwd',array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
It seems that we do not receive answer from the server with the mysql database. The page load during about 20 minutes before we get an error.
Does the remote server reply using reverse DNS lookup ?? So that we don't have answer ?
Thanks for your help !!!
Regards,
Fabian