libcares-2.dll Error in Windows 10 and 11: Asynchronous DNS resolver errors

A tool loses its name-resolution capability after an update or reports libcares-2.dll missing on startup.
What this DLL does
c-ares provides asynchronous name resolution for Windows applications built to use it.
Start with this check
Check whether Windows can resolve a documented test hostname and compare the same name through the affected app. Record the first error.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Repair the complete app or the supported c-ares package used by that build. When only DNS queries fail after loading, consult the network’s approved settings.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Resolve and connect to the known test host in the original app and verify the module error is gone.
For a related check, see dnsapi.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: MSYS2 Windows package manifest for c-ares.