Some of the sites on my VPS take a long time to load when I access them through the domain name for example: www.officegofor.ca and but they load very fast if I access it through the IP address http://207.58.170.93/ (access through the domain first and then through the ip) What could be causing this?
LOL sorry, I meant popup error... it's been a long week. One of those security errors "The name on the certificate is invalid or doesn't match the site name" Potential customers may be turned off by that. If you're not seeing it, clear up your cache and try or use another browser you normally don't use. (clicking My Account)
sllik, If the site is only loading slow on the initial load of the domain name and is fine on subsequent loads: It's the result of the initial DNS lookup. In most cases DNS lookup load times are the result of the end-user but check your dns speed score on dnsstuff.com anyways
At this very moment, with both the IP and the domain name the complete pagload takes 2-4 seconds from Europe. But there seems to be an issue with your Domain DNS records [ERROR: I was unable to get an answer from the parent servers [ca02.cira.ca], when I tried to find the NS records for officegofor.ca.] source: http://www.dnsstuff.com/tools/dnsreport.ch?&domain=officegofor.ca Have a look at the technical contact that is managin your domain and the nameservers ns1.syscue.com 207.58.130.208 ns2.syscue.com 207.58.130.209 source: http://whois.ca/
be sure to have your Apache HostnameLookups config at Off. If On, it makes the server to request a reverse DNS lookup for each http access to your server. It just needs to log the IP and it's fast. If you hage log analysis that resolve adress (eg awStats), it don't bother the time it takes. It's prefered to have fast server times. Another trick, just do a nslookup www.something.com in command line and check how many times it takes. If it's long, check that names servers in your /etc/resolv.conf are good. If they're not, the server makes queries to them and the time the connection fails is probably higher than a second. Another possibility, is what easytouch said in his post.... I've not tried this issue to diagnose your problem... Hope that helps you... and good luck!
The hostnamelookups setting has nothing to do with it because it is recording the source of the connection. I think EasyTouch has a point. Being that it is CIRA, I would look at the time it takes to load other .ca domains. It would not be the first time that CIRA has had problems. There may be news on their homepage.
Nameservers take long time to respond. Thus domain takes long time to get DNS info. IPs dont need such thing, thus they are fast!