Hello @DHIA AHMED
If the issue is specifically with Windows 10 and other things like firewalls and routing has been checked, also assuming that this is a hostname ping, not IP, there are 2 settings in the registry of Windows you can test. These are specific to Windows 10, which would explain the behavior:
(*always take a backup of your registry before applying any changes)
DisableSmartNameResolution (DWORD)
In registry key HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient.
The value is 1 to disable, 0 to enable smart resolution.
DisableParallelAandAAAA (DWORD)
In registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters.
The value is 0 to enable, 1 to disable DNS A and AAAA queries from executing in parallel on all configured DNS servers, with the fastest response being theoretically accepted first.
Otherwise, I would ask you to take a traceroute, nslookup, between 2 affected machines, to see if there is any other routing involved.
Hope it helps!
Best regards,