Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a running Debian web server with ispconfig. The problem is that whenever I make a first connection it takes about 1-2 seconds to connect, after this 1st connection everything runs smoothly.

I suspect it has something to do with the DNS configuration.

How could I troubleshoot this?

share|improve this question
up vote 1 down vote accepted

Try to lookup your server's hostname at a client and your client machine's hostname at a server. If one of two takes long to lookup then you should change that hostname or add it to the /etc/hosts.

To know hostname of the server type hostname in the command line. Then on another server type nslookup <hostname>. If you get the IP address in the command's output — hostname resolves correctly. Example:

$ nslookup

Non-authoritative answer:

If hostname cound not be resolved you'll get answer like this:

$ nslookup google.local

** server can't find google.local: NXDOMAIN
share|improve this answer
how can i do that? can you provide me the commands? thanks! – spacebiker Dec 7 '12 at 6:52
I edited my answer, added needed information. – Vladimir Smotesko Dec 7 '12 at 10:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .