Skip to main content

Enabling Intranet access to Synology DSM through domain name for Merlin firmware routers

Introduction

I recently bought a Synology NAS, a DS218play machine that has been discontinued (due to lack of money), and started a long process of tinkering with it. Because I have been living on campus for a long time, I wanted to access the Synology NAS at home through the domain name to implement various functions, such as mapping disks on the external network. 

However, due to the NAT loopback restriction set by the network providers in China, I later found that I cannot access the Synology NAS using the domain name in the Intranet of my home. After a long period of exploration, I finally succeeded! Here I will share with you the specific method, which can be achieved without putty or secureCRT.

Text

First download the WinSCP software online, as shown in the figure after downloading and installing.


Select the SCP protocol. The host name is the IP of your router's management page. The username and password are the same as those used to log in to the routing management page. Just connect. The port remains unchanged. After filling in, click Login, as shown in the figure.


After connected, go all the way back to the routing root directory, enter the /jffs/configs directory, create a new dnsmasq.conf.add file, and write the following content: addn-hosts=/jffs/configs/hosts

The writing method is the same as editing a txt text document in Windows. Note that the file name is dnsmasq.conf.add

Create a new file, the file name is hosts, and write the following content (e.g. my Synology NAS intranet IP is 192.168.50.66).

192.168.50.66 yourdomain.com


After adding the two files, select "Yes" in the pop-up dialog box, and then restart the router. Then use the windows command line or powershell on any computer in the LAN (preferably other computers) to ping your domain name. If the intranet IP of nas appears, that means it successes!

Comments

Popular posts from this blog

Ways to bypass GFW as a foreigner in Mainland China

I'm surprised to find out there are very few tutorials for westerners living in Mainland China to bypass the Great Firewall built by CCP. Maybe you come to Mainland China due to multiple reasons, such as academic communication,work or live here. However, popular VPN providers like ExpressVPN,NordVPN and surfshark can't work very well here. The VPN traffic and socks5 proxy traffic has already been precisely detected and blocked by GFW for ages. What is GFW?  The Great Firewall (GFW) of China is a nickname for the Chinese government's internet control system, built up for censorship purposes. It blocks or limits access to commonly-used foreign websites and services, such as Google, YouTube, Facebook, Instagram, WhatsApp, and many Western news sites. In simple terms, it works like a big digital wall that decides what people in China can or cannot see online. It's part of a broader effort by the Chinese government to control the flow of information and make sure that the i...

Configuring DNSPod DDNS on Synology NAS to achieve external network access

 Introduction This article will explain in detail how to use the in-built DDNS function in Synology DSM to implement Tencent Cloud DNSPod dynamic domain name resolution. Here I will take the domain name purchased on Alibaba Cloud as an example. Text Transfer your nameservers to DNSPod Log in to the Alibaba Cloud console, search for "Domain Name Console" in the search box, click on your domain name and modify the DNS (mine has been modified before) to: f1g1ns1.dnspod.net f1g1ns2.dnspod.net Add domain name resolution Register dnspod and log in (you can also log in directly with a Tencent Cloud account), DNSPod official website: https://www.dnspod.cn/ . Click on your domain name, add an A record, and set the A record to resolve your domain name to any IP (e.g. 0.0.0.0). Then go to "Key Management" and click "Create Key", copy and save the generated ID and token. Please note that token information is only displayed once when created, so copy and save it in tim...