Solely subdomain assignment to a Linode IP

Hi Community,

I have my domain name hosted at a local company. I wish to point only a subdomain to my Linode. Would that be possible?

Have a healthy Sunday, Oz.

3 Replies

I think the people you have to pose this question to is the company that hosts your domain.

I don't see why not but the DNS record(s) defining the subdomain would need to be configured at the same registrar as your domain name…not in the Linode DNS Manager.

If the subdomain is just for easy access to your Linode from a few systems where you have admin privileges, you can just add the subdomain to the /etc/hosts file on each system requiring access. /etc/hosts is a simple text file where each record is an IP address and a list of domain names all separated by whitespace:

1.2.3.4     sub.domain.com sub

This entry would resolve the domains sub and sub.domain.com to the IP address 1.2.3.4. It works for IPv6 too:

2600:3c01::f03c:92ff:feb2:3d2d ipv6.sub.domain.com

/etc/hosts only applies to the system where /etc/hosts lives. You have to be the super-user to edit it.

-- sw

Thank you, this was very comprehensive. I decided to buy a new domain name, having seen your answer, workarounds sound a bit itchy.

You write:

Thank you, this was very comprehensive. I decided to buy a new domain name, having seen your answer, workarounds sound a bit itchy.

I assumed you had another (non-Linode) system you were using that was known by your domain name. If that's not the case, you can do what you want in the Linode DNS Manager. It's pretty easy.

-- 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