- 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.
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:
- Download DriverFix (verified download file).
- Click Start Scan to find all problem drivers.
- 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?
- Check your antivirus
- Using Command Prompt
- Update your drivers
- Restart the DNS client service
- Add a period after the searched domain.
- Restart the DNS cache service
- Change IPv4 Settings
- Switch to Google DNS
- Check your hosts file
- Disable IPv6
1. Check your antivirus
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
- Press Windows key + X to open the Win + X menu.
- Choose Command Prompt (Administrator) (or PowerShell (Administrator) for older operating systems).
3. Run the following commands:
netsh winsock reboot catalog
netsh int ip reset reset.log
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.
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
- Press Windows Key + R to open the Run dialog box.
- Enter services.msc and press Enter or click OK.
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.
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:
- In the Services window, locate the DNS client and double-click it to open its properties.
- Go to the Dependencies tab, where you should be able to see the services that the DNS client depends on.
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
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:
- Start the command prompt as an administrator.
- Run the following commands:
- just stop dnscache
- just start dn cache
After these two commands are executed, the DNS cache service will restart and the problem should be resolved.
7. Change the IPv4 settings
- Click the network icon on your taskbar and choose your network from the menu.
- Click Change adapter options in the right pane.
- Now a list of all network connections appears. Right click on your network connection and choose Properties from the menu.
- Select Internet Protocol Version 4 (TCP / IPv4) from the list and click the Properties button.
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.
7.When the new window appears, log in. as domain suffix and click Add. Saving Changes.
After doing that, the problem should be resolved and everything should start working again.
8. Switch to Google DNS
- Repeat steps 1 through 4 from the previous solution.
- Then select Use the following DNS server addresses.
- Enter 126.96.36.199 as Preferred and 188.8.131.52 as Alternate DNS Server. Click OK to save the changes.
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
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.
- Follow steps 1-3 of Solution 7.
- Find Internet Protocol version 6 (TCP/IPv6) in the list and uncheck it. Now click Apply and OK to save the changes.
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.