• When the nslookup command works but the ping fails on your device, the causes can be several.
  • However, changing some settings should help, and we’ll show you how in this article.
  • For any other software-related problem, you can find expert solutions in the Troubleshooting Center.
  • For any network issues, please refer to our guides in the Network & Internet section.

Nslookup Works But Ping Fails On Windows 10

To fix various PC problems, we recommend DriverFix:

This software keeps your drivers working and protects you from common computer errors and hardware failures. Check all your drivers now in 3 easy steps:

  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problem drivers.
  3. Click Update Driver Software to get new versions to avoid system crashes.
    DriverFix was downloaded by 539,401 readers this month.

In this article, we will discuss cases where the nslookup command works in Windows 10, but the ping fails.

In case you are not familiar, these are two commands that advanced users can use to get domain name or IP address information, and today we are going to show you how to solve this problem.

Similar issues reported by users include:

  • Nslookup resolves IP but ping does not – it could be caused by your antivirus or firewall;
  • Nslookup works traceroute fails –it may be related to certain services and restarting them may solve the problem;
  • Nslookup can’t resolve ping works.

How do I fix ping failures on Windows 10?

  1. Check your antivirus
  2. Using Command Prompt
  3. Update your drivers
  4. Restart the DNS client service
  5. Add a period after the searched domain.
  6. Restart the DNS cache service
  7. Change IPv4 Settings
  8. Switch to Google DNS
  9. Check your hosts file
  10. Disable IPv6

1. Check your antivirus

Nslookup Works But Ping Fails On Windows 10

According to users, if nslookup works but the ping fails, the problem may be related to your antivirus.

Several users reported problems with Kaspersky and its firewall feature. The solution would be to disable this tool and check if that fixes the problem.

Of course, the problem may not only be related to Kaspersky, but also to other antivirus programs.

In some cases, the only way to fix this problem is to uninstall your antivirus.

If the problem doesn’t occur later, you may want to consider switching to a different antivirus solution. Anyway, there are many great antivirus programs on the market.

If you want a reliable antivirus that won’t interfere with your system, we recommend giving Bitdefender a try.

This is your best option to ensure that your system is protected without compromising the functionality of the usual processes.

2. Use Command Prompt

  1. Press Windows key + X to open the Win + X menu.
  2. Choose Command Prompt (Administrator) (or PowerShell (Administrator) for older operating systems).

Nslookup Works But Ping Fails On Windows 10

3. Run the following commands:
netsh winsock reboot catalog
        netsh int ip reset reset.log
        ipconfig /flushdns
        ipconfig / registerdns
        path / f
After running these commands, check if the problem is solved.


3. Update your drivers

Another possibility is that the problem is related to your drivers, which may be outdated.

Of course, you can easily fix the problem by downloading and installing the latest drivers.

To do that, all you need to do is visit your network adapter’s website and download the latest drivers for your model. After downloading and installing the latest drivers, the problem should be solved.

If this method seems a bit complicated to you, perhaps you should consider using third-party tools like DriverFix and update your drivers in one click.

Nslookup Works But Ping Fails On Windows 10

The tool scans your system as soon as you start it up and then provides a list of all vulnerable drivers that need to be updated, plus recommended software.

You can safely choose from the respective list as the tools are compatible with your device.


4. Restart the DNS Client service

  1. Press Windows Key + R to open the Run dialog box.
  2. Enter services.msc and press Enter or click OK.

Nslookup Works But Ping Fails On Windows 10

3. Locate the DNS client, right click on it and choose Stop.
4. Wait a moment, right-click the DNS Client again and choose Start from the menu.

Nslookup Works But Ping Fails On Windows 10

If you can’t stop the service, then the problem is dependent services. The DNS client service depends on certain services and until these services are stopped, you cannot stop the DNS client service.

To find out which services the DNS client depends on, follow these steps:

  1. In the Services window, locate the DNS client and double-click it to open its properties.
  2. Go to the Dependencies tab, where you should be able to see the services that the DNS client depends on.

Nslookup Works But Ping Fails On Windows 10

3. Stop these services and then you should be able to stop the DNS Client as well.
4. After restarting the DNS Client service, make sure to restart the services that the DNS                     client depends on.

This can be a bit of a tricky solution, especially if you need to disable dependent services, but as long as you follow the instructions carefully, you should be able to manage it.


5. Add a dot after the searched domain

Nslookup Works But Ping Fails On Windows 10

This is an unusual solution, but it worked for some users. If nslookup works but the ping fails, you may be able to fix the problem simply by adding a period after the domain.

For example, if you have previously used the ping windowsreport command, try using ping windowsreport. command and see if it works.


6. Restart the DNS Cache service

As we mentioned before, sometimes issues like this can occur due to certain services. Most likely the DNS cache service is the culprit and to fix it all you need to do is restart it.

To do this quickly, follow these steps:

  1. Start the command prompt as an administrator.
  2. Run the following commands:
  •  just stop dnscache
  • just start dn cache

Nslookup Works But Ping Fails On Windows 10

After these two commands are executed, the DNS cache service will restart and the problem should be resolved.


7. Change the IPv4 settings

  1. Click the network icon on your taskbar and choose your network from the menu.Nslookup Works But Ping Fails On Windows 10
  2. Click Change adapter options in the right pane.
  3. Now a list of all network connections appears. Right click on your network connection and choose Properties from the menu.
  4. Select Internet Protocol Version 4 (TCP / IPv4) from the list and click the Properties button.

Nslookup Works But Ping Fails On Windows 10

5. Now click on the Advanced button.
6. Go to the DNS tab and select Include these DNS suffixes (in order). Now click on                  the  Add button.

Nslookup Works But Ping Fails On Windows 10

7.When the new window appears, log in. as domain suffix and click Add. Saving Changes.

Nslookup Works But Ping Fails On Windows 10

After doing that, the problem should be resolved and everything should start working again.


8. Switch to Google DNS

  1. Repeat steps 1 through 4 from the previous solution.
  2. Then select Use the following DNS server addresses.
  3. Enter 8.8.8.8 as Preferred and 8.8.4.4 as Alternate DNS Server. Click OK to save the changes.

Nslookup Works But Ping Fails On Windows 10

Then check if the problem persists. Keep in mind that switching to Google DNS can slow down your internet connection a bit.

9. Check your hosts file

Nslookup Works But Ping Fails On Windows 10

If the problem persists, the problem could be your hosts file. If nslookup works but the ping fails, the hosts file may have been edited by malware or another application, causing this and other similar issues.

To solve the problem, it is recommended to check this file and make sure that everything is in order. Basically, if you see the website you are trying to ping in the list, it means that the hosts files have been modified.

Just remove the entries pointing to the website you’re trying to ping and you’re good to go. If you don’t know how to do this, you can always reset the hosts file and that should fix the problem.

10. Disable IPv6

In case you are not familiar, there are two types of IP addresses, IPv4 and IPv6. The latter is the newer standard, but if you’re not using IPv6 specifically, you may want to disable this feature.

It turns out that several users reported that the ping issues were related to IPv6. So let’s disable it and see if that helps.

  1. Follow steps 1-3 of Solution 7.
  2. Find Internet Protocol version 6 (TCP/IPv6) in the list and uncheck it. Now click Apply and OK to save the changes.

Nslookup Works But Ping Fails On Windows 10

After disabling IPv6, check if the problem persists.

Not being able to ping a particular device or IP address can be a problem, but we hope you solved the problem with one of our solutions.

Furthermore, we also cover the inability to ping other computers in Windows 10, so you may want to read that article as well.

If you have any more suggestions on this topic, please share them in the comment below.

Similar Posts