you need to add record for your subdomain like what explained here:
so simply in your DO control panel under your domain, do the following:
Add A record --> write down your subdomain end up with dot like this: media.xyz.com.
and your droplet IP in the 2nd field next to that: 107.170.51.xx
try that and see if it works or not!!