Setting up a Custom Sub-Domain DDNS for Synology NAS
In this article, we will discuss how to set up a custom sub-domain DDNS for Synology NAS. Currently, one DDNS is set up using DS Mobile, which is provided by Synology. Although the current DDNS is using the DiskStation.me domain, we will explore how to set up a custom sub-domain instead.
What is DDNS?
DDNS stands for Dynamic Domain Name System. It is a method of automatically updating a domain name to point to an IP address that changes periodically. It is commonly used for remote access to servers, network devices, and other equipment with dynamic IP addresses.
Why Use a Custom Sub-Domain?
Using a custom sub-domain allows you to brand your DDNS domain name with your company or personal name. It also allows you to have multiple DDNS domains pointing to different IP addresses, making it easier to manage your network devices and equipment remotely.
Setting up a Custom Sub-Domain DDNS for Synology NAS
To set up a custom sub-domain DDNS for Synology NAS, follow the steps below:
- Log in to your Synology NAS and go to the Control Panel.
- Under the Network section, click on DDNS.
- Click on Add to create a new DDNS entry.
- Select Custom Domain from the Domain Name dropdown list.
- Enter your custom sub-domain name in the Sub-Domain Name field. For example, if your domain name is mydomain.com, you could enter "nas" as the sub-domain name, giving you a DDNS domain name of nas.mydomain.com.
- Enter your domain name provider's DDNS server name in the Host Name field. For example, if your domain name provider is GoDaddy, you could enter "ddns.godaddy.com".
- Enter your DDNS user name and password in the User Name and Password fields.
- Click on Test Connection to ensure that the DDNS settings are correct.
- Click on OK to save the DDNS entry.
Setting up a custom sub-domain DDNS for Synology NAS is a simple process. By following the steps outlined in this article, you can brand your DDNS domain name and make it easier to manage your network devices and equipment remotely. The benefits of using a custom sub-domain include greater flexibility and the ability to have multiple DDNS domains pointing to different IP addresses.
References
// Example of a Python script for setting up a custom sub-domain DDNS for Synology NAS
import requests
url = 'https://your-synology-nas-ip-address/your-custom-sub-domain-name'
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
data = {
'HostName': 'ddns.godaddy.com',
'UserName': 'your-ddns-username',
'Password': 'your-ddns-password',
'DomainName': 'your-custom-sub-domain-name.mydomain.com',
'TestConnection': '1'
}
response = requests.post(url, data=data, headers=headers, verify=False)
print(response.text)