I've setup DNS to my droplet, with a wildcard CNAME, as explained in the tutorial ( https://www.digitalocean.com/community/articles/how-to-set-up-a-host-name-with-digitalocean ) and it works fine.
Now I'd like to connect a specific sub-domain to a different Droplet/IP.
server.com => 18.104.22.168
www.server.com => 22.214.171.124
xxx.server.com => 126.96.36.199
foobar.server.com => 188.8.131.52
What I'd like to add:
work.server.com => 184.108.40.206
Based on simple google search, adding another "A" record pointing to "220.127.116.11" should "just work", and take priority over the wildcard CNAME (which points "*" => "@" => 18.104.22.168).
However, this didn't work, or I have not configured it correctly in the DigitalOcean's DNS page.
My "zone file" has this (IPs changed for brevity):
@ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.SERVER.org. (
1383653276 ; last update: 2013-11-05 12:07:56 UTC
3600 ; refresh
900 ; retry
1209600 ; expire
1800 ; ttl
IN NS NS1.DIGITALOCEAN.COM.
@ IN A 22.214.171.124
* CNAME @
work. IN A 126.96.36.199
However, "ping work.server.com" still gives 188.8.131.52 instead of 184.108.40.206 .
What am I doing wrong?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.