Wednesday, October 7, 2020

Nslookup works but ping fails on Windows 10





3. Update your drivers


Another possibility is that the issue is related to your drivers, which might be outdated.


Of course, you can fix the issue simply by downloading the latest drivers and installing them.


To do that, you just need to visit your network adapter’s website and download the latest drivers for your model. After you download and install the latest drivers, the problem should be resolved.


If this method seems a bit complicated to you, perhaps you should consider using third-party tools such as DriverFix and update your drivers with just a single click.DriverFix automatically update drivers


The tool will scan your system as soon as you launch it, and then offer a list of all vulnerable drivers that need updating, plus recommended software.


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


DriverFix

DriverFix


Avoid unexpected system errors and keep your device settings up and running by updating all your drivers with DriverFix.



4. Restart the DNS Client service


  1. Press Windows Key + R to open the Run dialog.

  2. Enter services.msc and press Enter or click OK.
    Run window nslookup works but ping fails

  3. Locate DNS Client, right-click it, and choose Stop.

  4. Wait for a couple of moments, right-click the DNS Client again and choose Start from the menu.
    Services window nslookup works but ping fails

If you can’t stop the service, the problem is the dependent services. DNS Client service depends on certain services, and until those services are stopped, you won’t be able to stop the DNS Client service.


To find out on which services DNS Client depends on, do the following:


  1. In the Services window, locate DNS Client and double-click it to open its properties.

  2. Head over to the Dependencies tab, where you should be able to see the services that DNS Client depends on.
    Dependant services nslookup works

  3. Stop these services and then you should be able to stop DNS Client as well.

  4. Once you restart the DNS Client service, be sure to restart the services that DNS client depends on.

This might be a bit complicated solution, especially if you need to disable depending services, but as long as you carefully follow the instructions, you should be able to manage.




5. Add a dot after the searched domain


add a dot after the searched domain


This is an unusual workaround, but it worked for some users. If nslookup works but ping fails, perhaps you can fix the problem simply by adding a dot after the domain.


For example, if you previously used ping windowsreport command, try using ping windowsreport. command and check if that works.



6. Restart the DNS Cache service


As we previously mentioned, sometimes these kinds of issues can occur due to certain services. Most likely, the DNS Cache service is the culprit, and in order to fix it, you just need to restart it.


To do this quickly, just follow these steps:


  1. Start Command Prompt as administrator.

  2. Run the following commands:
    • net stop dnscache

    • net start dnscachenet stop dnscache


After running these two commands, 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.
    network icon nslookup doesn't work

  2. Click Change adapter options in the right pane.

  3. A list of all network connections will now appear. Right-click 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.
    IPv4 nslookup not working

  5. Now click the Advanced button.

  6. Go to the DNS tab and select Append these DNS suffixes (in order). Now click the Add button.
    Domain suffix nslookup doesn't work

  7. When the new window appears, enter . as the Domain suffix and click Add. Save changes.
    suffix add nslookung not working

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



8. Switch to Google DNS


  1. Repeat steps 1 – 4 from the previous solution.

  2. Then, select Use the following DNS server addresses.

  3. Enter 8.8.8.8 as the Preferred and 8.8.4.4 as the Alternate DNS server. Click OK to save changes.
    network icon nslookup doesn't work DNS change

After doing that, check if the problem is still there. Bear in mind that switching to the Google DNS might slow down your Internet connection a bit.



9. Check your hosts file


Check your hosts file



If the problem is still there, the issue can be your hosts file. If nslookup works but ping fails, it’s possible that the hosts file was edited by malware or another application, and that can cause this and similar problems to appear.


To fix the problem, it’s advised to check this file and make sure that everything is in order. Basically, if you see the website you’re trying to ping on the list, it means that the hosts files was modified.


Simply 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 that, you can always reset the hosts file and that should fix the problem.



10. Disable IPv6


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


As it turns out, several users reported that the ping issues was related to IPv6. So let’s disable it and check if that helps.


  1. Follow steps 1-3 from Solution 7.

  2. Locate Internet Protocol Version 6 (TCP/IPv6) on the list and uncheck it. Now click Apply and OK to save changes.
    IPv6 ping fails

After disabling IPv6, check if the problem is still there.


Not being able to ping a certain device or an IP address can be a problem, but we hope that you solved the issue using one of our solutions.


Additionally, we also covered the impossibility to ping other computers on Windows 10, so you might want to check out that article as well.


If you have further suggestions on this topic, feel free to hare them in the comment below.




Editor’s Note: This post was originally published in November 2018 and was completely revamped and updated in October 2020 for freshness, accuracy, and comprehensiveness.








Thank you for viewing the article, if you find it interesting, you can support us by buying at the link:: https://officerambo.com/shop/

No comments:

Post a Comment