title: curl: (6) Could not resolve host: on WSL
body: <p>I have installed Ubuntu 20.04 LTS on WSL.</p>
  <p>I'm trying to run the following command:</p>
  <pre><code>curl https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch
  </code></pre>
  <p>It fails with error:</p>
  <blockquote>
  <p>curl: (6) Could not resolve host: developer.mozilla.org</p>
  </blockquote>
  <p>I have tried something else, and it worked, e.g.</p>
  <pre><code>$ curl https://google.com
  &lt;HTML&gt;&lt;HEAD&gt;&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=utf-8&quot;&gt;
  &lt;TITLE&gt;301 Moved&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;
  &lt;H1&gt;301 Moved&lt;/H1&gt;
  The document has moved
  &lt;A HREF=&quot;https://www.google.com/&quot;&gt;here&lt;/A&gt;.
  &lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>
  <p>Here's some details:</p>
  <pre><code>$ nslookup developer.mozilla.org
  Server:         127.0.0.1
  Address:        127.0.0.1#53
  
  Non-authoritative answer:
  developer.mozilla.org   canonical name = d1avawhiqh9uo1.cloudfront.net.
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 52.84.112.124
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 52.84.112.61
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 52.84.112.82
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 52.84.112.105
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:8e00:13:e62f:2040:93a1
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:9c00:13:e62f:2040:93a1
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:a000:13:e62f:2040:93a1
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:d800:13:e62f:2040:93a1
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:f600:13:e62f:2040:93a1
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:200:13:e62f:2040:93a1
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:1c00:13:e62f:2040:93a1
  Name:   d1avawhiqh9uo1.cloudfront.net
  Address: 2600:9000:203c:4e00:13:e62f:2040:93a1
  </code></pre>
  <p>Please help to understand the problem.</p>