DNS Subdomains to different IPs (A vs CNAME records?)

Posted November 6, 2013 71.8k views
Hello, I've setup DNS to my droplet, with a wildcard CNAME, as explained in the tutorial ( ) and it works fine. Now I'd like to connect a specific sub-domain to a different Droplet/IP. Example: current setup: => => => => What I'd like to add: => Based on simple google search, adding another "A" record pointing to "" should "just work", and take priority over the wildcard CNAME (which points "*" => "@" => 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): === $TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. ( 1383653276 ; last update: 2013-11-05 12:07:56 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A * CNAME @ work. IN A === However, "ping" still gives instead of . What am I doing wrong? Thanks! - G

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.

Submit an Answer
2 answers
Pay particular attention to formatting, either:
work    A

or    A

should suffice. Notice the trialing dot in the second example. In the first example, DigitalOcean's DNS Manager will automatically append
Worked perfectly.