Host resolution slow

Discussion in 'Windows Desktop Systems' started by kentcb, Mar 16, 2007.

  1. kentcb

    kentcb OSNN One Post Wonder

    Messages:
    3
    Hi,

    I have a website running on my main machine at home (WinXP SP2). I have set the website as my home page in my browser (IE7) using the host name.

    Every time I open IE7 there is a long lag between the browser opening and the home page opening (up to 10 seconds). Using localhost instead of the host name is likewise very slow. When I changed the home page to use the IP address instead of the host name, that works very quickly.

    Anyone know why using the host name would be so much slower?

    Thanks
     
  2. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    disable the DNS client service.

    You can do this by bringing up the run dialogue (windows key + R)
    type services.msc and click okay.
    Scroll down to DNS Client and right click it.
    Choose properties and set the run mode to disabled from automatic. Click stop then apply and then ok.
    exit the services control panel and run the host lookup again. It should be faster.
     
  3. kentcb

    kentcb OSNN One Post Wonder

    Messages:
    3
    Thanks but that didn't work. It just stops me from obtaining an IP address and joining the network in the first place.
     
  4. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    It shouldn't. Make sure you disabled DNS not DHCP.
     
  5. kentcb

    kentcb OSNN One Post Wonder

    Messages:
    3
    Whoops I did disable the wrong one soz. However, it is still slow after disabling and stopping the DNS service.
     
  6. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    That's very odd. Hmm I'm going out on a limb here but take a look at http://www.opendns.com/ and tell windows to use their DNS servers instead of your ISP's. They have detailed instructions if you are not sure how to do this yourself.
     
  7. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    lord, that shouldn't effect the resolution for the local host name though. As I understand it, he mentions no issues when resolving external hosts, only his own machine hostname.

    Just out of curisoty, if you drop into a command prompt and do nslookups, do you see the same delay?
     
  8. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    It might since windows tries external lookup first in some cases.