Results 1 to 10 of 10

Thread: DNS resolve problem with ping but not nslookup

  1. #1
    Join Date
    Oct 2008
    Location
    FL
    Posts
    2

    DNS resolve problem with ping but not nslookup

    After failing to update my windows XP to SP3, my PC was not able to resolve DNS with most softwares. The only one that seems to still work now is my Opera browser. Others, such as IE 6, firefox are not able to resolve the DNS.

    I tried pinging google and it also fails.
    C:\>ping www.google.com
    Ping request could not find host www.google.com. Please check the name and try again.


    But nslookup can still work
    *** Can't find server name for address 192.168.0.1: Non-existent domain
    *** Default servers are not available
    Server: UnKnown
    Address: 192.168.0.1

    Non-authoritative answer:
    Name: www.l.google.com
    Addresses: 209.85.165.103, 209.85.165.104, 209.85.165.147, 209.85.165.99
    Aliases: www.google.com


    Here are the results of ipconfig /all:
    Windows IP Configuration

    Host Name . . . . . . . . . . . . : xxxxxx
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Unknown
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : hsd1.fl.comcast.net.

    Ethernet adapter Local Area Connection 3:

    Connection-specific DNS Suffix . : hsd1.fl.comcast.net.
    Description . . . . . . . . . . . : VIA Rhine II Fast Ethernet Adapter
    Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 192.168.0.10
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.0.1
    DHCP Server . . . . . . . . . . . : 192.168.0.1
    DNS Servers . . . . . . . . . . . : 192.168.0.1
    Lease Obtained. . . . . . . . . . : Monday, October 13, 2008 6:39:05 AM
    Lease Expires . . . . . . . . . . : Thursday, October 16, 2008 6:39:05 AM

  2. #2
    Paul Bergson [MVP-DS] Guest

    Re: DNS resolve problem with ping but not nslookup

    Ping isn't going to work with many of the external host sites, so this is
    normal. If you can do an nslookup on a site, then dns is resolving
    correctly. It sounds more like the browsers you are attempting to use are
    corrupted.

  3. #3
    Join Date
    Oct 2008
    Location
    FL
    Posts
    2
    From my prior experience, even if ping does not work on some external host sites, it would show another error message. The DNS would still be resolved, but the ping would time out. So I don't think that's the case. Secondly, there are other software other than the two browsers that are unable to resolve the DNS on my PC. So I don't think anything is corrupted with the browsers.
    .

  4. #4
    Join Date
    Oct 2008
    Posts
    1

    Re: DNS resolve problem with ping but not nslookup

    i'm haveing the somewhat the same problem. firefox and IE will not go out to web sites. email does not work either. but if i type googles ip in the address bar it will display the website. but if i type www.google.com it won't. very frustrating. i can ping intenal ips but no extenal DNS names. i can ping extenal IPs and i get resopnce back. any ideas?

  5. #5
    Join Date
    Nov 2008
    Posts
    2
    I've had the exact same issue on two computers and until I read this form it didn't occur to me it might have to do with SP3. I had just deployed SP2 & SP3 via group policy to over 40 PCs at my clients location while joining all of their computers to the new active directory network.

    Basically, unless I use nslookup, DNS doesn't work. This includes Firefox, Internet Explorer, as well as internal active directory lookups to authenticate usernames and passwords against the domain. Noone could log on to the computer as a domain user - had to logon as local admin to work on it.

    This means I could, say, "nslookup myserver.mydomain.local", get the IP, and then manually ping the IP and get a reply.
    However, if I said "ping myserver.mydomain.local" it would say "Ping request could not find host myserver.mydomain.local. Please check the name and try again."

    To me, basically this means nslookup can query because it simply opens a winsock connection on the DNS port and gets a query itself, whereas ping, IE, Firefox, and Windows itself for active directory domain authentication all cannot since they use the DNS Client service.

    I had this same problem on now two computers. The first one, which I worked on earlier this week, I ended up formatting the computer to fix.
    I tried specifying a static IP & DNS instead of using DHCP.
    I tried uninstalling/reinstalling the network adapter.
    I checked the Winsock using LSPFix to make sure there weren't any files missing or malware.
    I checked hijackthis log for other malware - all clean.
    I tried resetting all of the registry entries for the TCP/IP stack using "netsh int ip reset c:\resetlog.txt"

    Now that I realized SP3 might be involved, I checked this second computer where the problem just surfaced - and sure enough - it still has SP2 listed in under System Properties, but SP3 is in the list of Add/Remove programs. I went ahead and uninstalled SP3 (which took like 5 seconds.. kind of wierd) and it had no affect on the problem. I'm going to try to reinstall SP3 and see if it corrects the problem.

    Both machines were Acer, if that makes a difference. You never know.. it might be some of the crap software they preload on it.

    SP3 Reinstallation fixed all of the DNS query issues.

    It's worth noting that even though DNS didn't work, WINS and NetBIOS still did so I could still connect to our server via \\myservername (or by IP of course). (whereas \\myservername.mydomainname.local did not because that's a DNS entry)

    I just connected to my server & ran the SP3 update again and it fixed all of the DNS resolution problems.

  6. #6
    Jonghyun Guest

    Re: DNS resolve problem with ping but not nslookup

    How about stopping the DNS Client Service? I had exactly same problems and
    did everything I can such as removing and reinstalling winsock , TCP/IP but
    failed. And the last thing I do was to stop dns client service and it now
    works fine. I don't know why. Is there someone who can explain it?

  7. #7
    Join Date
    Jul 2009
    Posts
    1

    Re: DNS resolve problem with ping but not nslookup

    Something with AD configuration?

    I got the same problem with my two new virtual redhat and suse. It was the directory LDAP client which was the problem. Now both servers are running correctly.

    If using linux (redhat or suse):
    look at nsswitch.conf & ldap.conf

    1) put "bind_policy soft" in /etc/ldap.conf
    2) nsswitch.conf must minimum have:

    passwd: compat
    group: compat
    hosts: files dns
    networks: files dns
    services: files
    protocols: files
    rpc: files
    ethers: files
    netmasks: files
    netgroup: files
    publickey: files
    bootparams: files
    automount: files nis
    aliases: files

    3) reboot
    4) check with: ping, nmap localhost.
    5) now you can enable your ldap client again. (RH: authconfig ; suse: yast2 ldap). It will modify your nsswitch.conf

    ref:

  8. #8
    Ace Fekay [MCT] Guest

    Re: DNS resolve problem with ping but not nslookup

    I don't know what you're responding to, becaues we can only see your post in the Microsoft DNS newsgroup because the original or prior posts in this thread have expired in the newsgroups (they're older than 90 days), but based on the subject line, I can say that pings and nslookup problems are not related to AD, rather they are based on the client's network configuration and the client side resolver service.

  9. #9
    Join Date
    Jan 2010
    Posts
    1

    Re: DNS resolve problem with ping but not nslookup

    What a lifesaver this thread was. After trying a thousand things that didn't work like registry edits, reinstalling TCP/IP and uninstalling/reinstalling Bonjour this did the trick. I uninstalled SP3 and reinstalled it and now the machine is fine again. I was preparing to reload the whole thing and what a pain that would have been.

    Thanks a million, Tenroc2000!

  10. #10
    Join Date
    Aug 2011
    Posts
    1

    Re: DNS resolve problem with ping but not nslookup

    I have exactly the same issue. I pretty much tried everything that I can find, but nothing was working. Thanks to "tenroc2o0o's post", once I uninstalled SP3. The problem is gone.

Similar Threads

  1. Replies: 3
    Last Post: 05-02-2009, 02:27 PM
  2. Can nslookup dns but cannot ping name
    By Colarado in forum Networking & Security
    Replies: 3
    Last Post: 30-09-2008, 02:32 PM
  3. DNS Issues affecting Ping/Nslookup
    By Joel in forum Windows Server Help
    Replies: 3
    Last Post: 25-09-2008, 12:27 AM
  4. Replies: 4
    Last Post: 08-06-2008, 07:39 AM
  5. Ping fails to resolve name but nslookup OK
    By AXJ in forum Windows Server Help
    Replies: 5
    Last Post: 18-04-2008, 11:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,644,482.76858 seconds with 17 queries