✓ Solved
Can a same domain be used by various Linodes?
My current plan has several created Linodes (Linode A and Linode B), I intend to buy a domain (example: funnyname.org
) and it is used by those Linodes through sub-domains. Example:
- Linode A is referred to as
http://siteA.funnyname.org
- Linode B is referred to as
http://siteB.funnyname.org
is it possible? If so, how?
1 Reply
✓ Best Answer
You do this with A/AAAA records in DNS… I'm assuming you're going to use Linode's DNS Manager for this.
Let the IP address of Linode A be 192.168.0.1.
Let the IP address of Linode B be 192.168.0.2.
- Set an A/AAAA record for
funnyname.org
to be192.168.0.1
with a default TTL. - Set an A/AAAA record for
siteA
to be192.168.0.1
with a default TTL. - Set an A/AAAA record for
siteB
to be192.168.0.2
with a default TTL.
Commit your changes and wait 24-48 hours depending on your location in the world…then test it:
ping funnyname.org
should reply with192.168.0.1
.ping siteA.funnyname.org
should reply with192.168.0.1
.ping siteB.funnyname.org
should reply with192.168.0.2
.
Repeat for IPv6 addresses (except use ping -6 to test). The web server(s) are configured differently. You'll have to figure that out yourself (I don't know which web server you want to use).
-- sw