Access your synology remotely from a DNS.

In this guide we will be setting up our synology for remote access. This can either be with a official domain name or a free dynamic one.

Table of Contents

Static IP

In order to access your Synology NAS externally first thing you have to setup is a static IP. This will allow you to forward the external connection from the internet to your Synology.

This only applies if your Synology does not have a static IP assigned yet

  1. Login into your DSM with an administrator account
  2. Open Control Panel
  3. Open Network
  4. Goto tab Network Interface
  5. Select LAN 1
  6. Click Edit
  7. Now you must enter the information from your home network, you have to set the IP address to an address which is not within the DHCP pool.
    Make sure you also set the gateway and DNS server to the IP address of your router.
  8. Click OK
  9. Restart your Synology
  10. After restart your Synology should now be accessable in your home network from the assigned IP number.

Router Configuration

This part is actually out of scope of this guide. What you need to do is to configure your router firewall and NAT port forwarding to allow network traffic from the internet to your Synology NAS and forward this traffic from the internet to the static IP number of your Synology.

You have to forward the following traffic

Type Port Description
TCP/UDP 80 HTTP Traffic
TCP/UDP 443 HTTPS Traffic

Please note that UDP is not explicitly required

You might have to consult the documentation of your router.

This guide will be updated on how to achieve this with a Synology Router running SRM.

Dynamic DNS

Setting up external access with a dynamic DNS is quite easy with Synology DSM.

Please note that if you're Synology is unable to determine your external IP you might have to go the http://whatsmyip.com to obtain your own public IP address.

In order to configure a dynamic IP follow the following steps.

  1. Login into your DSM with an administrator account
  2. Open Control Panel
  3. Open External Access
  4. Goto the tab DDNS
  5. Choose Add
  6. Choose a Service Provider; if you're unsure choose, Synology
  7. Now you can enter a Hostname and choose a suffix
    Your DNS name will become hostname.suffix, so for example mynas.diskstation.me.
    Of course the domain name must be available, you can check with Test Connection but the wizard should auto check for you.
  8. Set Heartbeat to Enable this will configure the Synology service provider to check if your NAS is online and available.
  9. In `External address(IPv4) it should show your public IP, if there is not a public IP you should go to http://whatsmyip.com obtain your public IP and use Set External IP to configure it.
  10. Agree to the Terms of Service and click OK
  11. After a few seconds it should say in the column Status; Normal

Official Domain Name

Configuring your NAS to work with an official domain name can be a little more difficult because it does require some configuration with an official provider.

I will not be listing the actual configuration because this will be different for each hosting provider which provides a DNS redirect service.

In order to set it up you are required to obtain the following.

  1. Register for an official domain name like a .com, .nl, .eu
  2. Obtain a DNS Redirect service from a hosting provider.
  3. In your hosting provider DNS redirect dashboard, redirect your domain name to your own public IP number
  4. Wait until the hosting provider have updated their DNS services, with some providers this can take several hours.

DNS Redirect Technical Details

In this example the public IP is: 1.1.1.1 and the domain name is example.com

Type Name Value TTL
A @ 1.1.1.1 1H
CNAME * example.com 1H
CNAME www example.com 1H
CNAME mail example.com 1H
MX @ 10 example.com 1H

This DNS redirect configuration will configure the following

  • Redirect registered domain name to 1.1.1.1
  • Create an alias with will redirect all subdomain also to this IP *.example.com
  • Create a www alias for your website www.example.com
  • Create an email server alias mail.example.com
  • Create an email record (MX) which will allow you to run your own mail server