title: "Unable to update registry: The server name or address could not be resolved" for a dependency
body: <p>I am using Windows and facing below error. Not sure why it's not working.</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\RUST\guess_game&gt;cargo build
      Updating registry `https://github.com/rust-lang/crates.io-index`
  warning: spurious network error (2 tries remaining): [2/-1] failed to send request: The server name or address could not be resolved
  
  warning: spurious network error (1 tries remaining): [2/-1] failed to send request: The server name or address could not be resolved
  
  error: failed to load source for a dependency on `rand`
  
  Caused by:
    Unable to update registry https://github.com/rust-lang/crates.io-index
  
  Caused by:
    failed to fetch `https://github.com/rust-lang/crates.io-index`
  
  Caused by:
    [2/-1] failed to send request: The server name or address could not be resolved
  </code></pre>