Nslookup Works but Ping Fails Repair Guide



Updated April 2024: Stop getting error messages and slow down your system with our optimization tool. Get it now at this link
  1. Download and install the repair tool here.
  2. Let it scan your computer.
  3. The tool will then repair your computer.

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).



April 2024 Update:

You can now prevent PC problems by using this tool, such as protecting you against file loss and malware. Additionally it is a great way to optimize your computer for maximum performance. The program fixes common errors that might occur on Windows systems with ease - no need for hours of troubleshooting when you have the perfect solution at your fingertips:

  • 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



Expert Tip: This repair tool scans the repositories and replaces corrupt or missing files if none of these methods have worked. It works well in most cases where the problem is due to system corruption. This tool will also optimize your system to maximize performance. It can be downloaded by Clicking Here