✓ 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 be 192.168.0.1 with a default TTL.
  • Set an A/AAAA record for siteA to be 192.168.0.1 with a default TTL.
  • Set an A/AAAA record for siteB to be 192.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 with 192.168.0.1.
  • ping siteA.funnyname.org should reply with 192.168.0.1.
  • ping siteB.funnyname.org should reply with 192.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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct