By assafgordon
Hello,
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.
Example:
current setup: server.com => 1.2.3.4 www.server.com => 1.2.3.4 xxx.server.com => 1.2.3.4 foobar.server.com => 1.2.3.4
What I’d like to add: work.server.com => 5.6.7.8
Based on simple google search, adding another “A” record pointing to “5.6.7.8” should “just work”, and take priority over the wildcard CNAME (which points “*” => “@” => 1.2.3.4).
However, this didn’t work, or I have not configured it correctly in the DigitalOcean’s DNS page.
$TTL 1800 @ 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. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 1.2.3.4
However, “ping work.server.com” still gives 1.2.3.4 instead of 5.6.7.8 .
What am I doing wrong?
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Pay particular attention to formatting, either: <br><pre>work A 5.6.7.8</pre> <br>or <br><pre>work.server.com. A 5.6.7.8</pre> <br>should suffice. Notice the trialing dot in the second example. In the first example, DigitalOcean’s DNS Manager will automatically append <code>server.com.</code>.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.