Using another hosts DNS

Hey,

I'm still very new to VPS and DNS stuff, but I'm wondering if I can set up a DNS with some other Hosting I have to point a sub-domain to my Linode server. For example:-

Have mobile.mysite.com go to my Linode server.

While still keeping www.mysite.com on the current hosting.

I tried creating a DNS zone pointing to my servers IP address using an A (host record), but it doesn't seem to point to anything. I'm guessing I might have to set something up on the server.

4 Replies

Yes you can do that. Where did you set up the A record? It needs to be on the other host that's looking after mysite.com, not the Linode DNS manager.

It might have just been the server ticking over, but I gave it a couple of hours and the site popped up. As said I set the DNS on the other site (not Linode) and it's coming through.

However just wondering here, is there any way of telling my server to goto a specific root folder from this address; as at the moment it goes to the default folder page. Normally I'd create a file in the /etc/apache2/sites-available/ and the server should send the user to the correct path. I believe it corisponds with Linodes DNS so if the DNS is on another host, is there still a way of doing it?!

Do it the usual way you have before to configure virtual hosting. The DNS sends the user to your server - the webserver then uses the mobile.mysite.com name to select the right virtual host. You don't need Linode's dns for this to work.

Ah brilliant, got it all working. :D

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