title: How can I direct traffic to Subdomains in /etc/hosts?
body: <p>I tried to put the line to /etc/hosts:</p>
  <blockquote>
  <p>IP math.com mathworld.com</p>
  </blockquote>
  <p>where IP was supposed to be the IP of <a href="http://mathworld.wolfram.com/classroom/" rel="nofollow noreferrer">http://mathworld.wolfram.com/classroom/</a>. I pinged the site, and I realised that I must direct traffic with some other tools:</p>
  <blockquote>
  <p>ping mathworld.wolfram.com/</p>
  <p>ping: cannot resolve mathworld.wolfram.com/: Unknown host</p>
  </blockquote>
  <p>So the question arises:</p>
  <blockquote>
  <p>How can I direct traffic to subdomains, similar to the above subdomain?</p>
  </blockquote>