I have problem with DNS resolving in my WSL1, here is the example:
[rootname@hostname ~]# yum update
CentOS Stream 8 - AppStream 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'appstream':
- Curl error (6): Couldn't resolve host name for https://vault.centos.org/centos/8-stream/AppStream/x86_64/os/repodata/repomd.xml [Could not resolve host: vault.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ping to vault.centos.org returns:
64 bytes from server-18-66-27-78.vie50.r.cloudfront.net (18.66.27.78): icmp_seq=4 ttl=246 time=54.6 ms
curl -G www.example.net returns content of html:
<html>
<<ANY_CONTENT>>
<body>
<div>
<h1>Example Domain</h1>
<p>This domain is for use in illustrative examples in documents. You may use this
domain in literature without prior coordination or asking for permission.</p>
<p><a href="https://www.iana.org/domains/example">More information...</a></p>
</div>
</body>
</html>
Where is problem of this Error, when DNS resolving de-facto works? How solve it? Thanks