: DDNS/DNS Zone Files, CNAME, etc.  ( 5756 )

DDNS/DNS Zone Files, CNAME, etc.
« : October 21, 2013, 10:48:18 PM »
So....

I have a NAS Server on a Dynamic IP at home that I'm using DDNS too connect to it right now, but, I'd really like is to create a subdomain off one of my domains and map it to the dynamic IP to setup SSL... soo.. how do I do this?

Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

Jegarmister

  • : 256
  • You cannot hide, I see you.
Re: DDNS/DNS Zone Files, CNAME, etc.
« #1 : October 22, 2013, 12:50:58 AM »
I'm selfish, impatient and a little insecure. I make mistakes, I am out of control and at times hard to handle. But if you can't handle me at my worst, then you sure as hell don't deserve me at my best.

Viridi

  • : 1361
Re: DDNS/DNS Zone Files, CNAME, etc.
« #2 : October 22, 2013, 04:25:45 AM »
ive done some things

Re: DDNS/DNS Zone Files, CNAME, etc.
« #3 : October 22, 2013, 06:35:03 AM »


Yes. This is how I feel quite often.

The problem with not going to school for things like this is whenever anything goes wrong I end up hunting around the internet for answers and they are either way to technical or not what I was looking for.
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

Sexagenarian

  • Grumpy Old F@rt
  • : 756
Re: DDNS/DNS Zone Files, CNAME, etc.
« #4 : October 22, 2013, 09:52:49 AM »
Do you have a fixed IP? If you do then you can probably use one of the DNS hosting organisations like Easy DNS. You will be able to maintain your own DNS records

If no fixed IP then probably someone like Dyn where the TTL can be set really low (30 seconds?) might help

Re: DDNS/DNS Zone Files, CNAME, etc.
« #5 : October 22, 2013, 04:52:13 PM »
Do you have a fixed IP? If you do then you can probably use one of the DNS hosting organisations like Easy DNS. You will be able to maintain your own DNS records

If no fixed IP then probably someone like Dyn where the TTL can be set really low (30 seconds?) might help
Fixed IP isn't available to me :(

I use Dyn (well, a service like that anyway) to update my NAS Server's IP when it changes. If it was a fixed IP I'd be able to use the A Record to point the domain at it, but since it's constantly changing I have to find some type of redirect that both preserves the domain (i.e. not a forward which shows the actual server URL in the address bar) and can map to a URL and port that isn't HTTP.
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

BaskB

  • Moderator
  • : 914
Re: DDNS/DNS Zone Files, CNAME, etc.
« #6 : October 22, 2013, 04:57:16 PM »
Emergy its the domain sentence confusing me.

So to access your NAS your going in via http://<IP address> or are you using a domain provided by DDNS that is a redirect to your ip? (Auto-updating via software) and its this domain you want to sub domain out of?

If you can explain more what you currently have I'll help out with what I can

Regiment 5 - Legion

Sexagenarian

  • Grumpy Old F@rt
  • : 756
Re: DDNS/DNS Zone Files, CNAME, etc.
« #7 : October 22, 2013, 05:11:02 PM »
To clarify I think you already have http;//www.domain.com and you're trying to create http;//subdomain.domain.com is that right?

Note I've substituted : for ; to get around creating a link

Re: DDNS/DNS Zone Files, CNAME, etc.
« #8 : October 22, 2013, 05:13:38 PM »
Emergy its the domain sentence confusing me.

So to access your NAS your going in via http://<IP address> or are you using a domain provided by DDNS that is a redirect to your ip? (Auto-updating via software) and its this domain you want to sub domain out of?

If you can explain more what you currently have I'll help out with what I can


Sweet thanks :)

Right now I'm using a DDNS to connect to the server so the address is something like "ServerName.DDNSCompany.me:5000" and I have a bunch of registered domains so I'd like to take one of those domains and create a link between that server URL and a subdomain off one of the domains I manage. So, something like "http://cloud.domain.com" would link to "ServerName.DDNSCompany.me:5000"
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

Re: DDNS/DNS Zone Files, CNAME, etc.
« #9 : October 22, 2013, 05:15:50 PM »
To clarify I think you already have http;//www.domain.com and you're trying to create http;//subdomain.domain.com is that right?

Note I've substituted : for ; to get around creating a link
I'm trying to create a link between a subdomain off a domain I own and the server's URL which I connect to through a DDNS url.
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

BaskB

  • Moderator
  • : 914
Re: DDNS/DNS Zone Files, CNAME, etc.
« #10 : October 22, 2013, 05:43:38 PM »
Emergy its the domain sentence confusing me.

So to access your NAS your going in via http://<IP address> or are you using a domain provided by DDNS that is a redirect to your ip? (Auto-updating via software) and its this domain you want to sub domain out of?


If you can explain more what you currently have I'll help out with what I can



Sweet thanks :)

Right now I'm using a DDNS to connect to the server so the address is something like "ServerName.DDNSCompany.me:5000" and I have a bunch of registered domains so I'd like to take one of those domains and create a link between that server URL and a subdomain off one of the domains I manage. So, something like "http://cloud.domain.com" would link to "ServerName.DDNSCompany.me:5000"

Sounds like a basic redirect to me... But I gather your also trying to hide the DDNS address from view?

So in short if you type http://cloud.domain.com it takes you too your server but never reveals the DDNS.me address?
Regiment 5 - Legion

Carlini8

  • MU - Command - The Legion
  • : 678
Re: DDNS/DNS Zone Files, CNAME, etc.
« #11 : October 22, 2013, 06:10:51 PM »
What is this actually for Emergy? Not that I will be able to help, I just have a NAS myself and interested in what can be done with it.

Re: DDNS/DNS Zone Files, CNAME, etc.
« #12 : October 22, 2013, 06:14:34 PM »
Sounds like a basic redirect to me... But I gather your also trying to hide the DDNS address from view?

So in short if you type http://cloud.domain.com it takes you too your server but never reveals the DDNS.me address?
Yep!

I can redirect via a URL frame to mask "ServerName.DDNS.me" but the frame won't update the address as I click links on the NAS server. Example - I have a link on the server that goes to "/about/about.html", but when I use a URL frame it doesn't update the address link (or if it does, it only updates it on the hidden frame), I'd rather it read "cloud.domain.com/about/about.html" rather than always displaying the "cloud.domain.com" URL or "ServerName.DDNS.me:5000/about/about.html" that is produced by a standard url redirect.

If that makes sense :P
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

Re: DDNS/DNS Zone Files, CNAME, etc.
« #13 : October 22, 2013, 06:17:24 PM »
What is this actually for Emergy? Not that I will be able to help, I just have a NAS myself and interested in what can be done with it.
Just want to make the NAS server accessible via a subdomain off a domain I own. Then eventually enable SSL on it.

So, instead of having a DDNS url to give everyone (example: MyServerName.DDNSCompany.me:Port#) I can just say - Oh, go to "cloud.mydomain.com"
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

Darkmantle

  • Moderator
  • : 8102
  • Bot Guy
Re: DDNS/DNS Zone Files, CNAME, etc.
« #14 : October 22, 2013, 06:54:45 PM »
Right, so there are 2 options here.

The first, ask Bask mentioned, is a simple redirect. You can do this in the domain names control panel, you should be able to tell the subdomain to redirect to a website (put DDNS link here). This is best for personal use and if you're not too fussed about the DDNS name being seen.

The other is  to simply make a page in the subdomain folder that redirects to the other page. Call it index.php and simply have this 1 line of code:

<? header('location:http://ddnsurl.whatever.com:port'); ?>

So in effect it's the website at the subdomain just forwarding you, rather than on a DNS level. There are other ways with DNS settings but to be honest this is the easiest solution.


Edit: Ignore the above stuff, didn't read all your posts. The above information is helpful for others anyway, but for your specific issue, it's a bit different.

What you will need is a CNAME record - this points a subdomain to a different website. In your control panel for your domain name you need to edit the DNS settings to add a CNAME record.

You will have 3 options. The "Name" is the name of the subdomain. So if you did nas.domain.com then you enter "nas" here. The Host Name is where to send it to, so the DDNS address. Leave the TTL as default.

This should work.
« : October 22, 2013, 07:00:06 PM Darkmantle »

Re: DDNS/DNS Zone Files, CNAME, etc.
« #15 : October 22, 2013, 07:12:16 PM »
What you will need is a CNAME record - this points a subdomain to a different website. In your control panel for your domain name you need to edit the DNS settings to add a CNAME record.

You will have 3 options. The "Name" is the name of the subdomain. So if you did nas.domain.com then you enter "nas" here. The Host Name is where to send it to, so the DDNS address. Leave the TTL as default.

This should work.

CNAME does not support port numbers :(
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

Darkmantle

  • Moderator
  • : 8102
  • Bot Guy
Re: DDNS/DNS Zone Files, CNAME, etc.
« #16 : October 22, 2013, 07:15:53 PM »
What you will need is a CNAME record - this points a subdomain to a different website. In your control panel for your domain name you need to edit the DNS settings to add a CNAME record.

You will have 3 options. The "Name" is the name of the subdomain. So if you did nas.domain.com then you enter "nas" here. The Host Name is where to send it to, so the DDNS address. Leave the TTL as default.

This should work.

CNAME does not support port numbers :(

Do it without the port, and then use the port in the new domain (like before).

So e.g:

nas -> http://ddns.ddns-provider.com/

Then go to http://nas.domain.com:PORT

This should work, but I've not done it before. If it comes to it you can change the NAS to port 80 if you're not using the webserver services on it.

Re: DDNS/DNS Zone Files, CNAME, etc.
« #17 : October 22, 2013, 07:23:33 PM »

Do it without the port, and then use the port in the new domain (like before).

So e.g:

nas -> http://ddns.ddns-provider.com/

Then go to http://nas.domain.com:PORT

This should work, but I've not done it before. If it comes to it you can change the NAS to port 80 if you're not using the webserver services on it.

That's brilliant, I didn't even think of that. However it doesn't work :(

It says "Webpage Not Available"
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

Darkmantle

  • Moderator
  • : 8102
  • Bot Guy
Re: DDNS/DNS Zone Files, CNAME, etc.
« #18 : October 22, 2013, 08:16:48 PM »
I'm out of ideas then. The only easy way is changing nas port to 80 so cname works. Unless you have root ssh access to the domain server.

Re: DDNS/DNS Zone Files, CNAME, etc.
« #19 : October 22, 2013, 08:26:42 PM »
I'm out of ideas then. The only easy way is changing nas port to 80 so cname works. Unless you have root ssh access to the domain server.
I might end up changing the port number. The only concern is - using the common port would make my system more discoverable/vulnerable, right? No one knows to look on port 5000.
Emergy Maxfell, OBE MC KCVS
Fmr. DPM, MoF, MP, GOC RAC, Commodore & Quartermaster

 

: :
:
/
:
What precious metal is a currency in erepublik?:
How do you spell 'Frerk'?:
What social MMO is this forum linked to?: