Re: too long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
thanks a lot man.
Now I know how it works.
But what I don't understant is why is it so slow only when I want submit form, because page is running fast.
Anyway its working now after I've deleted everything in hosts file.
I realy don't understant. It can be empty?

Thanks

S pozdravom Janci Siser

--- On Fri, 12/19/08, André Warnier <aw@xxxxxxxxxx> wrote:
From: André Warnier <aw@xxxxxxxxxx>
Subject: Re: too long
To: users@xxxxxxxxxxxxxxxx
Date: Friday, December 19, 2008, 11:34 AM

Dan Poirier wrote:
[...]

.. and he is right.
It really looks like a DNS problem, *on Dzilberte's workstation side*.
I connected to the site and submitted the contact form. The response is
immediate (less than 1 second).

For Dzilberte :
I also do not know how much you know about how HTTP works, so I will assume you
do not know too much and describe it roughly.

When your browser is asked to "get" the URL
"http://www.brechot.sk/contact-form.php"
it really does this :

1) it tries to "translate" the hostname "www.brechot.sk"
into an IP address. For that, the browser asks the local operating system
(Windows) to do the translation.
2) the local operating system first looks in the local "hosts" file,
to see if there is translation of "www.brechot.sk" into an IP address.
If there is one, the operating system returns the IP address to the browser,
and you can skip to 5).
3) if there is not translation in the local hosts file (probably), then the
operating system asks the DNS servers.
The DNS servers are the ones configured in your network connection setup.
Usually there is more than one. If the first one does not answer, after a
minute or so the operating system tries the next one, etc..
That is probably what is happening in your case.
3a) If the DNS servers cannot in the end find an IP address for
"www.brechot.sk", then they tell the browser, and the browser tells
the user "this site cannot be found".
4) Assuming one of the DNS servers answers in the end, the operating system
returns the IP address to the browser.
5) Now the browser connects to that IP address, and sends the request
"GET(*) /contact-form.php"
(*) or POST

In my case, the mechanism above works fine, and my browser quickly send the
request to the server, and the server answers quickly.

Evidently in your case, somewhere between 3) and 4) above, something is not
working correctly.
In other words, it probably has nothing to do with your webserver, but is
probably a local problem of the DNS setup of your workstation.

Confirm this as follows :
- open a "command window"
- enter : nslookup www.brechot.sk
and see how long it takes.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux