title: Can a single hosts file entry contain multiple domains/sub-domains?
body: <p>May be this is a weird question, but I am curious to know if single hosts file entry can contain multiple domains on same line?</p>
  
  <p>I know that following is okay for host entry:</p>
  
  <pre><code>127.0.0.1 somedomain.com
  </code></pre>
  
  <p>But, I want to know if following would work:</p>
  
  <pre><code>127.0.0.1 somedomain.com, alternate-domain.com, subdomain.domain.com
  </code></pre>
  
  <p>or</p>
  
  <pre><code>127.0.0.1 somedomain.com, *.domain.com
  </code></pre>
  
  <p>(<strong>Note</strong>: I am doing hosts file entries on windows)</p>
  
  <p>May be this has been asked before, but I googled before writing my question, and I didn't quite find a good answer. Thanks for taking time to read and answering, it will be pretty helpful.</p>