Report this

What is the reason for this report?

how can I map two subdomains to two droplets (two different IP addresses)?

Posted on July 25, 2013

hi

I own a domain name, let’s call it domain.com

I want to map two subdomains of it to two DigitalOcean droplets (let’s say with IP’s 1.1.1.1 and 2.2.2.2), as in:

sub1.domain.com -> 1.1.1.1 sub2.domain.com -> 2.2.2.2

I’ve tried creating two ‘A’ records: sub1 1.1.1.1 sub2 2.2.2.2

but it has not worked. pinging sub1.domain.com and sub2.domain.com hits the same IP 1.1.1.1

any help appreciated

cheers

Francisco



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!

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.

actually, I take the question back, that worked :) <br> <br>it may have been a problem with not flushing correctly my dns cache

Reason? load balancing?

I do have a similar problem, I wand to assign a sub domain name to a different IP address, I am currently using a hosted service. Please, how can I achieve this? <br> <br>Benjamin

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.