title: Route website to subdomain in digitalocean
body: <p>I'm trying to route a subdomain media.xyz.com to another droplet in digialocean. My main domain xyz.com points to a different server correctly. </p>
  
  <p>My zone record looks like this</p>
  
  <pre><code>@   IN A    107.170.51.xx
  www CNAME   @
  media   IN A    107.170.52.xx
  </code></pre>
  
  <p>However this does not work and the sub domain (media.xyz.com) redirects to my main webserver. </p>
  
  <p>I've read the digital ocean tutorial on this and I think I've set it up correctly. I've also looked over questions on SO and the general advice is to create a new A record. </p>
  
  <p>Could anyone tell me if this approach should work..? Or is my understanding on how this should work incorrect..?</p>