Make domain url lead to subdomain
I have bought a domain
GoDaddy. In GoDaddy, I have customised DigitalOcean as name servers; in DNS of DigitalOcean, I have added the following records:
As a result, when I type
www.sub.domain.com in a browser, they both lead to
sub.domain.com, which is what I want.
www.domain.com lead to the default site of my server. However, I also want them to lead to
Does anyone know what to do to make this happen?