When I ping a host, it says that it can’t find the host, but when I do an NSLookup it can. This is because Ping uses the Windows DNS Client service to view the cached lookup address, while NSLookup contacts the specified DNS server each time.
To fix Ping not being able to resolve the host name, restart the DNS Client service.