Page 1 of 1

latency when using domain name instead of IP

Posted: 31 Aug 2007, 20:21
by ChaseDoggy
Hey,

I looked through the forums and didn't find anything regarding this...

I plan on using multiple instances and servers with SF Pro 1.5.x and am finding that when I configure an instance with an IP in the config.xml and in my .html file it responds about 40 - 60 seconds faster than if I use a domain name eg. play.domainname.com . They both work, it's just that I find severe latency when using a domain name. Is there something that I'm missing or any suggestions?

I'm using Linux (CentOS 5)

Posted: 01 Sep 2007, 00:52
by Lapo
Is just depends on the DNS query response.
Each time a client application (a browser, the flash player etc...) needs to connect to a certain domain it can do it in 2 different ways: numeric IP or domain name.

If you use the former the OS will perform a DNS query to retrieve the IP address of the requested domain. This of course will add some lag as you send a request to the DNS and wait a response from it.