nslookup works, but ping fails by hostname (works by ip). IE cannot display the webpage. please help!
Unable to access Internet on my laptop with Windows XP SP2 installed; firewall uninstalled; Microsoft Security Essentials (AV) installedipconfig /all shows a 192.168.x.x ip address allocated to my ethernet adapter.TCP/IP properties are set to "Obtain an IP address automatically" and "Obtain DNS server address automatically."I am able to perform name lookups, and ping by ip address, but cannot ping by hostname. When I try to browse through to a website, it shows the message "Waiting for http://xxx.xxx.xxx" in the status bar but fails to load the webpage.I tried a couple of websites by their ip address with the browser, for example 212.58.244.143, and IE was able to load the webpage (without any of the objects of course that required name resolution).Able to ping loopback (127.0.0.1) as well as the computer by its name (which resolves to the ip address allocated to it). arp -a shows the entry for the default gateway. Able to ping it.I have done ipconfig /flushdns and /registerdns without any effect.Same with net stop dnscache and net start dnscache.Manually reset TCP/IP too using the instructions here. Also used "netsh winsock reset catalog" as per guidance here.Running out of ideas here... could anyone please advise what to do? Or what extra information would be required to troubleshoot this issue? 1 person needs an answerI do too
May 29th, 2010 5:22pm

DNS resolution isn't working. What does ipconfig/all show for the DNS server address? Is there a working DNS server at that address?Try manually specifying a DNS server address, such as 208.67.222.222 (OpenDNS ) or 8.8.8.8 (Google Public DNS ).Boulder Computer MavenMicrosoft Most Valuable Professional
Free Windows Admin Tool Kit Click here and download it now
May 30th, 2010 11:33pm

ipconfig /all shows the home router/default gateway's ip address (192.168.1.254) for DNS (which fetches results from the ISP's server).DNS server is working, as nslookup works fine with its DNS queries. "nslookup google.com", for example, returns 209.85.225.104 and other addresses. And I can ping the 209.x.x.x ip address, but am not able to ping by hostname (google.com) or load it through browser. I did manually specify OpenDNS server address for DNS as you suggested, with no difference though. The problem is with NBNS (NetBIOS Name Service) as I can see failed nbns queries, through Ethereal, when I try to ping or load the webpage with Internet Explorer (using either of wired or wireless connections). But I don't know, at least not yet, how to resolve it. Any suggestions would be appreciated.
May 31st, 2010 5:53pm

1-. .. First, try to clean up your caches, Internet files and delete cookiesby doing this:Click Start >> Control Panel >> Double click Network and InternetConnections >> Double click Internet Options.On the IE properties windows you will see these Taps:General | Security | Privacy | Content | Connections | Programs |AdvancedUnder General Tab clear your History, Internet Files and Cookies.Then click on Advanced tab and scroll down to under the Browsing Option:[&] Browsing[ ] Enable Third-Party browser extensions (Req Rest) uncheck this box.[&] HTTP 1.1 Settings[ ] Use HTTP 1.1[ ] Use HTTP 1.1 through proxy connectionsIf you using proxy check the proxy one if not check only the first one.Then under Security Option:[&] Security[ ] Use SSL 2.0[ ] Use SSL 3.0[ ] Use STL 1.0 Then click on Programs Tab and click Manage Add-Ons and Disable all nonVerified Add-Ons (You should Re-enable them later one-by-one and see theculprit and update it or remove it.Then Open a run command and type in these DLLs to re-register them:regsvr32 SOFTPUB.DLLregsvr32 Wintrust.dllregsvr32 Mssip32.dllregsvr32 Initpki.dllregsvr32 Msjava.dllregsvr32 Gpkcsp.dllregsvr32 Sccbase.dllregsvr32 Slbcsp.dllregsvr32 Urlmon.dllregsvr32 Cryptdlg.dllregsvr32 Dssenh.dllregsvr32 Rsaenh.dllNote you can copy the above and paste in a Notepad and Save As on the Desktop reg.bat file then you can open a run command and type in:C:\reg.bat click [OK] and then Yes.Again on the Run command type in:ipconfig /flushdns click [OK]ipconfig /renew click [OK]netsh winsock reset click [OK]Reboot your machine and see if you can access any website/link easly and without the cannot connect error message.2 - /---- OR -----*/Click Start >> Control panel >> Network and Internet connections >> Double click Network Connections >> Right click You LAN connection Icon and selectProperties.On the Local Area Connection Properties click on General Tab and Highlight the Internet protocol (TCP/IP) and click on the properties Button.On the Internte Protocol Properties make sure the Optain the IP Automatically Radio Button is checked.Click on Alternate Configuration Tab and also make sure the Automatic Private IP Radio Button is selected.Then click on General tab again and click on Advanced Button. On Advanced TCP/IP Settings you will see these Tabs:IP Settings | DNS | WINS | OptionsClick on IP Settings Tab and make sure the DHCP is Enabled and Auto Metric is checked, then click on DNS Tab Clear the DNS Addresses you have there and check these Radio Buttons:(*) Append primary and connection specific DNS suffixes [ ] Append parent suffixes of the primary DNS suffixes DNS suffix for this connection [ leave empty ] [ ] Register this connection's addresses in DNSThen click on WINS Tab,make sure these Settings are correct:[ ] Enable LMHOSTS lookup NetBIOS setting (*) Default: Use NetBIOS setting from the DHCP serve. If static IP addresse is used or the DHCP server doesn't provide NetBIOS setting,enable NetBIOS over TCP. /---------------------------*/ 3 - /---- Copy the code below and save it as fitHTTP.reg, then right click it and select merge to merge to your regsitry. ----------- */REGEDIT4[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\URL\DefaultPrefix]@="http://"[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\URL\Prefixes]"ftp"="ftp://""gopher"="gopher://""home"="http://""mosaic"="http://""www"="http://" NOTE: reboot after each fix ( try each one and see which will fix your issue).Let us know your findings nass -- http://www.nasstec.co.uk
Free Windows Admin Tool Kit Click here and download it now
May 31st, 2010 8:21pm

1 - Cleared the cache, files, cookies, historySet up the IE options as advised.Registered the named DLLs -- all succeeded except Gpkcsp.dll:LoadLibrary("gpkscp.dll") failed - The specified module could not be foundDone the following and rebooted, as suggested:ipconfig /flushdns click [OK]ipconfig /renew click [OK]netsh winsock reset click [OK]no effect2 - TCP/IP properties already show Obtain the IP Automatically and the advanced settings you suggested.no effect3 - done as suggested, and rebooted.no effectAny other suggestions for me?
May 31st, 2010 9:07pm

OkayTry this;While on the IE click Tool >> Options >> Connection, click on the LAN settings and make sure nothing been checked there.Open Run and type in:regsvr32 urlmon.dllregsvr32 Browseui.dllReboot and see if that will help.If still no joy then we need to make sure first the machine clean from malware and viruses by run a thorough scan from here:SuperAntispyware - Freehttp://www.superantispyware.com/superantispywarefreevspro.htmlMalwarebytes© Corporation - Anti-Malwarehttp://www.malwarebytes.org/mbam/program/mbam-setup.exehttp://www.freedrweb.com/download+cureit/gr/?lng=enPlease download, install get the latest definitions and run a COMPLETE scan!There is another method but still far to talk or apply it for now.Let us know and can you provide more info about is it something recent and what your router model, security software installed and did you have an old security software been uninstalled recently as this can be the cause in some cases like yours! nass -- http://www.nasstec.co.uk
Free Windows Admin Tool Kit Click here and download it now
May 31st, 2010 9:36pm

LAN settings window has -Automatically detect settings- selected. No proxy being used.Registered the two dlls, as suggested. Rebooted -- no effect.Installed and ran SuperAntispyware (complete scan) -- nothing infected detected.Installed and ran Malwarebytes Anti-malware -- no malware found.Installed and ran Dr.Web Scanner for Windows -- again, nothing found.The problem started last week when I was away from home, and was trying to access the wireless connection at my friend's place. It connected successfully, but I could not access Internet. I thought it was perhaps because of my Zonealarm personal firewall (free), and so I uninstalled the firewall. But it made no difference. Since then I have tried various things but no success so far. Event logs too don't show any service failures.No firewall installed at the moment. Even Windows firewall not on just now.Have Microsoft Security Essentials (A/V), ThreatFire, and WinPatrol installed and running. I trust all three :) I have though tried killing processes for all three, and it did not make any difference with respect to my Internet access.The router was provided by the ISP (it's a Siemens Gigaset SE567 Wireless ADSL router), and it's working fine. The other machines connected to the same router do not have any problems with accessing Internet.Please let me know if you have any other suggestions. I really don't want to do an OS re-install, if possible!
June 1st, 2010 1:05am

hi,Can you check the directory for this config file;C:\Windows\System32\Drivers\etc = can you see resolv.conf there? Or tell us what listed there.What happen when you right click the wirless Icon in the Network Connections, select properties.On the Wireless Network Connection Properties click on Wireless Network Tabs.Under the preferred networks try to remove the ones you are no longer using, leaving your Wireless SSID.Reboot your machine and see if that will fix the issue. If that didn't help try to Restore your system to before this happen and see if that will fix the issue. nass -- http://www.nasstec.co.uk
Free Windows Admin Tool Kit Click here and download it now
June 1st, 2010 1:30am

C:\Windows\System32\Drivers\etcas far as I know, no resolv.conf in Windows. The files in the above path (on my laptop) are: hosts, lmhosts (it's empty though - 0 bytes), lmhosts.sam, networks, protocol, servicesI had already done what you suggested for the SSIDs. Plus, the problem is not limited to wireless connection. It's the same with the wired connection too.Yeah, Restore... I can't! Disabled it long time ago. Let me know please if you can think of anything else. And thanks a lot for all your help so far.
June 1st, 2010 2:41am

C:\Windows\System32\Drivers\etcas far as I know, no resolv.conf in Windows. The files in the above path (on my laptop) are: hosts, lmhosts (it's empty though - 0 bytes), lmhosts.sam, networks, protocol, servicesI had already done what you suggested for the SSIDs. Plus, the problem is not limited to wireless connection. It's the same with the wired connection too.Yeah, Restore... I can't! Disabled it long time ago. Let me know please if you can think of anything else. And thanks a lot for all your help so far.
Free Windows Admin Tool Kit Click here and download it now
June 1st, 2010 2:41am

Try this tools to fix the DNS issue and let us know if the problem solved;http://download.softpedia.com/dl/6d7759ddb61b8019b1263f5ddb67c9ed/4c04c971/100015337/software/tweak/winsockfix.exeRun it and when prompted please reboot your system. Can we have the entries in the Hosts and lMhost file in your next post if you still have a problem?Some info to read further to understand what the DNS all about.Configuring IP Addressing and Name Resolution http://technet.microsoft.com/en-us/library/bb457118.aspxHow to configure TCP/IP to use DNS in Windows XPhttp://support.microsoft.com/kb/305553nass -- http://www.nasstec.co.uk
June 1st, 2010 12:00pm

Sorry, couldn't reply earlier because of travels. Back at home now after two weeks, and still having the same problem with my laptop that I had at my friend's place.Ran the winsockfix.exe, rebooted - but no difference.Hosts file entries:--------------------------------------------# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed in the first column followed by the corresponding host name.# The IP address and the host name should be separated by at least one# space.## Additionally, comments (such as these) may be inserted on individual# lines or following the machine name denoted by a '#' symbol.## For example:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost--------------------------------------------lmhosts.sam file entries:--------------------------------------------# Copyright (c) 1993-1999 Microsoft Corp.## This is a sample LMHOSTS file used by the Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to computernames# (NetBIOS) names. Each entry should be kept on an individual line.# The IP address should be placed in the first column followed by the# corresponding computername. The address and the computername# should be separated by at least one space or tab. The "#" character# is generally used to denote the start of a comment (see the exceptions# below).## This file is compatible with Microsoft LAN Manager 2.x TCP/IP lmhosts# files and offers the following extensions:## #PRE# #DOM:<domain># #INCLUDE <filename># #BEGIN_ALTERNATE# #END_ALTERNATE# \0xnn (non-printing character support)## Following any entry in the file with the characters "#PRE" will cause# the entry to be preloaded into the name cache. By default, entries are# not preloaded, but are parsed only after dynamic name resolution fails.## Following an entry with the "#DOM:<domain>" tag will associate the# entry with the domain specified by <domain>. This affects how the# browser and logon services behave in TCP/IP environments. To preload# the host name associated with #DOM entry, it is necessary to also add a# #PRE to the line. The <domain> is always preloaded although it will not# be shown when the name cache is viewed.## Specifying "#INCLUDE <filename>" will force the RFC NetBIOS (NBT)# software to seek the specified <filename> and parse it as if it were# local. <filename> is generally a UNC-based name, allowing a# centralized lmhosts file to be maintained on a server.# It is ALWAYS necessary to provide a mapping for the IP address of the# server prior to the #INCLUDE. This mapping must use the #PRE directive.# In addtion the share "public" in the example below must be in the# LanManServer list of "NullSessionShares" in order for client machines to# be able to read the lmhosts file successfully. This key is under# \machine\system\currentcontrolset\services\lanmanserver\parameters\nullsessionshares# in the registry. Simply add "public" to the list found there.## The #BEGIN_ and #END_ALTERNATE keywords allow multiple #INCLUDE# statements to be grouped together. Any single successful include# will cause the group to succeed.## Finally, non-printing characters can be embedded in mappings by# first surrounding the NetBIOS name in quotations, then using the# \0xnn notation to specify a hex value for a non-printing character.## The following example illustrates all of these extensions:## 102.54.94.97 rhino #PRE #DOM:networking #net group's DC# 102.54.94.102 "appname \0x14" #special app server# 102.54.94.123 popular #PRE #source server# 102.54.94.117 localsrv #PRE #needed for the include## #BEGIN_ALTERNATE# #INCLUDE \\localsrv\public\lmhosts# #INCLUDE \\rhino\public\lmhosts# #END_ALTERNATE## In the above example, the "appname" server contains a special# character in its name, the "popular" and "localsrv" server names are# preloaded, and the "rhino" server name is specified so it can be used# to later #INCLUDE a centrally maintained lmhosts file if the "localsrv"# system is unavailable.## Note that the whole file is parsed including comments on each lookup,# so keeping the number of comments to a minimum will improve performance.# Therefore it is not advisable to simply add lmhosts file entries onto the# end of this file.--------------------------------------------I did read about host name resolution on Technet and other resources. My TCP/IP and DNS configuration settings were already as advised.I have also tried disabling NetBIOS over TCP/IP and not using the LMHOSTS lookup at all .. rebooted.. but didn't work. So, am back at using lmhosts and the default NetBIOS setting (from the DHCP server). When I run nbtstat -n, it does show entries.Also some captures below from network monitor, if they are of any help.192.168.2.10 is my laptop's IP address (subnet mask for my home network is 255.255.255.0).192.168.2.1 is the default gateway/ISP router. The other computer connected to the router has no problems.(Any idea why the failing NbtNs queries below are destined to 192.168.2.255?)Please let me know if you got any suggestions for me. Thanks!--------------------------------------------------------------------------------------------------------NetmonFilter NetmonFilter:Updated Capture Filter: NoneNetworkInfoEx NetworkInfoEx:Network info for, Network Adapter Count = 1 source IP destination IP protocol descriptioncapture 1 (browser request failed) {UDP:1, IPv4:0} 192.168.2.10 192.168.2.255 NbtNs NbtNs:Query Request for MAIL.GOOGLE.COM<00> <0x00> Workstation Service{UDP:1, IPv4:0} 192.168.2.10 192.168.2.255 NbtNs NbtNs:Query Request for MAIL.GOOGLE.COM<00> <0x00> Workstation Service{UDP:1, IPv4:0} 192.168.2.10 192.168.2.255 NbtNs NbtNs:Query Request for MAIL.GOOGLE.COM<00> <0x00> Workstation Servicecapture 2 (performed nslookup) 192.168.2.10 192.168.2.1 ARP ARP:Request, 192.168.2.10 asks for 192.168.2.1192.168.2.1 192.168.2.10 ARP ARP:Response, 192.168.2.1 at 00-11-A1-BB-A7-3F{DNS:13, UDP:12, IPv4:9} 192.168.2.10 192.168.2.1 DNS DNS:QueryId = 0x1, QUERY (Standard query), Query for 1.2.168.192.in-addr.arpa of type PTR on class Internet{DNS:13, UDP:12, IPv4:9} 192.168.2.1 192.168.2.10 DNS DNS:QueryId = 0x1, QUERY (Standard query), Response - Name Error {DNS:15, UDP:14, IPv4:9} 192.168.2.10 192.168.2.1 DNS DNS:QueryId = 0x2, QUERY (Standard query), Query for google.ca.no-domain-set.aliant of type Host Addr on class Internet{DNS:15, UDP:14, IPv4:9} 192.168.2.1 192.168.2.10 DNS DNS:QueryId = 0x2, QUERY (Standard query), Response - Name Error {DNS:17, UDP:16, IPv4:9} 192.168.2.10 192.168.2.1 DNS DNS:QueryId = 0x3, QUERY (Standard query), Query for google.ca of type Host Addr on class Internet{DNS:17, UDP:16, IPv4:9} 192.168.2.1 192.168.2.10 DNS DNS:QueryId = 0x3, QUERY (Standard query), Response - Success, 72.14.204.103, 72.14.204.147 ... capture 3 (pinged by IP)192.168.2.10 192.168.2.1 ARP ARP:Request, 192.168.2.10 asks for 192.168.2.1192.168.2.1 192.168.2.10 ARP ARP:Response, 192.168.2.1 at 00-11-A1-BB-A7-3F{IPv4:22} 192.168.2.10 72.14.204.103 ICMP ICMP:Echo Request Message, From 192.168.2.10 To 72.14.204.103{IPv4:22} 72.14.204.103 192.168.2.10 ICMP ICMP:Echo Reply Message, From 72.14.204.103 To 192.168.2.10{IPv4:22} 192.168.2.10 72.14.204.103 ICMP ICMP:Echo Request Message, From 192.168.2.10 To 72.14.204.103{IPv4:22} 72.14.204.103 192.168.2.10 ICMP ICMP:Echo Reply Message, From 72.14.204.103 To 192.168.2.10{IPv4:22} 192.168.2.10 72.14.204.103 ICMP ICMP:Echo Request Message, From 192.168.2.10 To 72.14.204.103{IPv4:22} 72.14.204.103 192.168.2.10 ICMP ICMP:Echo Reply Message, From 72.14.204.103 To 192.168.2.10{IPv4:22} 192.168.2.10 72.14.204.103 ICMP ICMP:Echo Request Message, From 192.168.2.10 To 72.14.204.103{IPv4:22} 72.14.204.103 192.168.2.10 ICMP ICMP:Echo Reply Message, From 72.14.204.103 To 192.168.2.10capture 4 (ping by host name failed) {UDP:1, IPv4:0} 192.168.2.10 192.168.2.255 NbtNs NbtNs:Query Request for GOOGLE.CA <0x00> Workstation Service{UDP:1, IPv4:0} 192.168.2.10 192.168.2.255 NbtNs NbtNs:Query Request for GOOGLE.CA <0x00> Workstation Service{UDP:1, IPv4:0} 192.168.2.10 192.168.2.255 NbtNs NbtNs:Query Request for GOOGLE.CA <0x00> Workstation Service--------------------------------------------------------------------------------------------------------
Free Windows Admin Tool Kit Click here and download it now
June 7th, 2010 1:04am

I ran into the same problem on Windows 7.The problem appears related to the patch from KB 945553. The solution, rather, the workaround is to turn off the dnscache service.In a command window run the following: net stop dnscache This fixes the problem. There obviously is some sort of bug in the dnscache program that Microsoft needs to address.
June 15th, 2010 11:42pm

I did run 'net stop dnscache' earlier to turn off the dnscache service but it didn't make any difference.Unfortunately, had to rebuild the laptop by doing a fresh install of the OS!
Free Windows Admin Tool Kit Click here and download it now
June 16th, 2010 8:40am

I encountered the same problem on win7. I also tried every solusion what you had tried.In the end, I reinstalled the tcp/ip stack and solved this problem. You may try the following steps:1. deleteHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinsockHKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock22. reboot3. Right-click the network connection, and then click Properties. Reinstall protocols from the disk. The location is "C:\Windows\inf". Choose the "ipv4..." and "ipv6".4. rebootEverything is ok.Good Luck!
September 24th, 2010 6:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics