I recently posted my problems getting a mysql connection. I takes 4 seconds. But I just found out that when the computer is online to the internet (using modem) the response time from the mysql server is less than 1 second, including the query!

Thanks, that seems to be the problem. I used the full name for the server in the requests, but now replaced it with 127.0.0.1. It's working great now.

Not that I want to fix what is not broken, but I cant help wondering what's wrong with my DNS since everything in the LAN and on the internet works great, it's only MySQL access from a PHP page that's slow..