Nslookup Works but Ping Fails Repair Guide



RECOMMENDED: Click here to fix Windows errors and optimize system performance

If you query the IP address of a website when your nslookup is running but the ping fails on a Windows 10 PC, there may be several reasons for this. Let’s try to solve these problems, but first here’s what nslookup.exe and ping mean in simple terms.

Just to complete things:

Nslookup only asks the specified DNS server for the assigned A record, it does NOT guarantee that the device behind this record actually has this IP.

Even if the device has the correct IP (for example, the fixed IP of the device corresponds to the one provided by the DNS), this does not guarantee that the device is configured to respond to pings. This is a common point of frustration. (I’m talking about you, Windows Firewall).



January 2021 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

download



If you are crossing subnets, the router/gateway/firewall may also restrict ICMP traffic (this is what a ping is).

You must therefore always check the entire service chain, from sender to recipient and vice versa. In the case of three, there may be settings such as a) default gateway or b) routes (default). Add them to your checklist.

Force Windows to perform a DNS search using FQDN.

On your computer, go to Settings > Network and Internet > Status > Change Adapter Options.

  • Right-click on the network and select Properties.
  • Select Internet Protocol Version 4 from the list of available connections in the list. If you use IPv6, use it.
  • Click on Properties
  • Click on Advanced
  • Go to the DNS tab and select “Add this DNS (in order)”.
  • Click on the Add button and add. as a suffix.

Reset WINSOCK and Flush DNS

Nslookup opens a Winsock connection on the DNS port and prints a request while ping uses the DNS client service. You could try to stop this service and see if it makes a difference.

Some commands that reset different network states:

  1. Reset WINSOCK inputs to installation default values: netsh winsock reset catalog
  2. Reset the TCP/IP stack to the installation default values: netsh int ip reset reset reset reset reset reset reset.log
  3. Clear the DNS resolver cache: ipconfig /flushdns
  4. Renewing the DNS client registration and updating the DHCP lease: ipconfig /registerdns
  5. Flush routing table: Road /f (restart required)

Using Google Public DNS

If this doesn’t help you, use Google Public DNS and see if it works for you. You will need to explicitly modify the DNS settings of your operating system using DNS IP addresses.

  1. First, right-click on the Network taskbar icon and select Network and Share Center.
  2. Select Change adapter settings.
  3. Locate the network connection used to connect to the Internet; the option can be Local connection or Wireless connection.
  4. Right-click and select Properties.
  5. In the new window, select Internet Protocol 4 (TCP/IPv4), then click on the Properties button.
  6. Check the box “Use the following DNS server addresses” in the new window.
  7. Enter in 8.8.8.8 and 8.8.4.4
  8. Finally, click on OK and exit the program.

Restart the DNS Client service.

If nslookup works but ping fails, the problem could be one of your services. Many users claim that DNS customer service was the problem, and to solve the problem, you must restart this service.

Check your Hosts file

If the problem still exists, the problem may be the hosts file. If nslookup works, but ping fails, it is possible that the host file was edited by malware or another application, which can cause similar problems.

To solve the problem, it is a good idea to check the hosts file and make sure everything is fine. If you see the website you are trying to ping on the list, it essentially means that the Hosts files have been modified.

https://stackoverflow.com/questions/330395/dns-problem-nslookup-works-ping-doesnt



RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance