DNS Lookup for website fails on PC

6,254

Solution 1

I would try opening up a command prompt and typing in "ipconfig /flushdns" and see if that works.

Solution 2

Summarizing from the comments on the question:

This is a local DNS problem. Your machines have no working DNS server configured (looks like your providers DHCP is messed up). Your options:

  • Contact your ISP and present him this information. Ask him to fix his DHCP.
  • Get yourself a router to put between your PCs and the ISP. Then configure your PCs with static IP / DNS servers. This way it doesn't matter what your provider's DHCP is doing (OK, the router may be unable to resolve things), as your PCs have their own fixed configuration (which doesn't get messed up on "ISP disconnects"

There may be some more options -- but I'd say the first one should be your final goal. As soon as you get correct servers by DHCP, your problem is gone. Second option provides a work around you can establish even if your ISP does not comply (think about another ISP then, for sure!) -- but in the long run gives you additional options for other things in your local network.

Share:
6,254

Related videos on Youtube

Cipher
Author by

Cipher

Updated on September 18, 2022

Comments

  • Cipher
    Cipher over 1 year

    I have a website www.abc.com (example) that has the IP (Example: 66.166.291.23).

    The website is not opening the home page on my PC by typing www.abc.com, but is running fine on all other machines of my team. I checked the hosts to see if the website has been blocked somehow, but the hosts files does not contain any other content other than default.

    If I run the website directly through the IP, it runs fine and I am able to view the home page.

    From cmd, if I type the command:

    ping www.abc.com  - Ping request coud not find www.abc.com Please check the same and try again
    ping 66.166.291.23 - Successful
    

    I also have two subdomain on the same host associated with the website i.e. code.abc.com and blog.abc.com and surprisingly both of them are running fine. (cmd ping also successful for both of them)

    I installed Fiddler to see what the heck is happening, and then on running fiddler, when I run the website www.abc.com, I get the folloing error in browser:

    [Fiddler] DNS Lookup for "www.abc.com" failed. The requested name is valid, but no data of the requested type was found
    

    Any idea why the website is not running on my machine. This is running fine on all other machine and with the users as well. I am on Windows 7 32 bit.

    • user1836103
      user1836103 almost 12 years
      You're not infected with dnschanger by any chance, are you?
    • joeqwerty
      joeqwerty almost 12 years
      It's fairly obvious from the information in your question that this is a DNS problem. Have you verfified your DNS configuration? Have you compared your DNS settings to those on a machine that works?
    • Cipher
      Cipher almost 12 years
      @womble: All other sites are working and this site as working fine until this morning. I contacted my hosting domain provider and got a reply that the site is working for them.
    • Cipher
      Cipher almost 12 years
      @joeqwerty: I am not sure about the steps I have to follow for this. Can you please elaborate on this?
    • Izzy
      Izzy almost 12 years
      Could you also state the OS used on your PC? This helps on suggesting tools (wouldn't be good to recommend something you cannot use, would it?).
    • Cipher
      Cipher almost 12 years
      @Izzy: I am on Windows 7 32 bit
    • Izzy
      Izzy almost 12 years
      @Cipher OK, then open a cmd window and check nslookup www.abc.com to see if your machine can resolve the IP (it won't, as ping couldn't either). So try nslookup (without parameters). First line should read "Default Server: ns.xyz.com" -- where ns.xyz.com is the name server used to lookup IPs. There might be the wrong one configured (compare with your team collegues machines). Ah: to quit nslookup (as it was started in interactive mode), simply type exit and press the <enter> key.
    • Cipher
      Cipher almost 12 years
      @Izzy: On my machine, nslookup in the cmd window says Default Server: UnKnown, Address: 218.248.241.34. The site is www.webassist.in and runs for all my users except me, so if you could check if this wrong for for my machine and the suggestion to rectify this?
    • Ramhound
      Ramhound almost 12 years
      @Cipher - I thought the problem was with www.abc.com not www.webassist.in you never answered if you have verified your dns configuration. Have you tried to change your DNS server to say OpenDNS or Google's DNS by chance?
    • Cipher
      Cipher almost 12 years
      @Ramhound: www.abc.com was an example. I have three machines here - a Macbook with MacOSx, a Dell laptop with Windows 7 Ultimate and a Samsung netbook with Windows 7 starter. None of these machines are running the website for me when I try with my ISP internet. Now, since the website is not running even on Mac, and most probably might be running for you, I am not sure if this is some ISP related problem. Why does the site run if I directly open it through the IP? What exactly is it and how to get over this?
    • Izzy
      Izzy almost 12 years
      @Cipher www.webassist.in resolves fine for me. Looks like a DNS configuration problem on your machines. Did you try the nslookup on your other machines as well? The command should be available on all of them. And did you compare its output with your teammates machines? And one more question: Do your machines use a static IP or DHCP? In the latter case, the DHCP server might be the cause (providing no valid DNS server).
    • Cipher
      Cipher almost 12 years
      @Ramhound: I tried the Google DNS and Open DNS as well and tried to chanegt the preferred DNS Server. But when I reconnect after changin the settings, it defaults to 'Obtain DNS Server Automatically' and I am not able to check with the changed settings. I'll try on MacOS and let you know
    • Cipher
      Cipher almost 12 years
      @Izzy: I have two team mates who are facing the same problem and using the same connection as me. Using nslookup on their machines, we get the same output as Default Server: UnKnown, Address: 218.248.241.34. Other team mates who are able to view the website and have a different ISP did nslookup and get the output as : Default Server: ? , Address: 192.168.2.1
    • Cipher
      Cipher almost 12 years
      @Izzy: My connection does not have a static IP. It changes everytime I connect to the internet
    • Izzy
      Izzy almost 12 years
      @Cipher that means your PC is connected directly to your ISPs network, and you do not have any router in between? I'd go to put one, as the team mates with the working DNS obviously did (they use a DNS server in the local network obviously, as the IP range 192.168.* is private according to RFC. Using a router, you can configure your machine with static (local) IPs, and set the name server as you wish. Still, the router gets its IP etc. from the provider then -- but who cares, as long as your machines do what you want them to do?