fmezas
By:
fmezas

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

July 25, 2013 3.5k views
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
4 Answers
actually, I take the question back, that worked :)

it may have been a problem with not flushing correctly my dns cache
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?

Benjamin
@chuddy17: Simply point an A record on whatever DNS platform you are using to your droplet's IP address.
Have another answer? Share your knowledge.