How do I link subdomain to my linode?

Hello, I have a website example.com that is hosted on some server.

I'd like to make a new service for my website, and I'd like it to share the same domain than the website, only a subdomain. In this manner:

Website : example.com | Hosted on server A
Service : service.example.com | Hosted on server B (linode)

In the panel of my domain manager (OVH), I have seen that I could create a new zone and assigning it a subdomain. So I did just that, I created a zone for the subdomain "service" and linked it to my linode's IP address.

But now, I'm not so sure what's the next step. When I type "service.example.com" on my browser's it just says that the server couldn't be found.

Could you help me achieving that? I found it hard to find informations on this kind of procedure, doesn't seem that common…

Thank you in advance!

1 Reply

In the panel of my domain manager (OVH), I have seen that I could create a new zone and assigning it a subdomain. So I did just that, I created a zone for the subdomain "service" and linked it to my linode's IP address.

I don't think you need a new zone…just an A/AAAA record in the example.com zone that has:

  • service for the host name;
  • the IP address of your Linode; and
  • a TTL (prob just the default.

You'll need an A/AAAA record for each Linode IP address -- IPv4 & IPv6.

But now, I'm not so sure what's the next step.

When you send pings to service.example.com do you get the IP address of your Linode as a response? If you do, then DNS is set up correctly.

When I type "service.example.com" on my browser's it just says that the server couldn't be found.

Did you set up a web server on your Linode with a virtual host for service.example.com? If not, then what you're seeing is the expected behavior.

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