First, enable SSH on your Synology via Disk Station Manager, then SSH into your NAS as the root user. Password should be the same as the admin password you use to connect to DSM.
The NAS uses mDNSResponder to broadcast Bonjour services. This is the Howl package, which is no longer maintained. When iTunes sharing is enabled, the mDNSResponder is launched; when it's disabled, it's taken down.
Howl uses a configuration file to determine what services to broadcast. It doesn't appear that this file exists anywhere on the NAS, so some other process must be passing the parameters for the iTunes and HTTP (DSM) sharing services. However, if you look at the /usr/syno/sbin/mDNSResponder binary, you can see that it searches for a default configuration file at /etc/howl/mDNSResponder.conf. The "trick" is to create that file, enable iTunes sharing, and presto!
So, SSH to your NAS as the root user. Then the following commands:
- Code: Select all
cd /etc
mkdir howl
cd howl
The conf file describes all the services to be broadcast. Like I said, the NAS handles the iTunes and HTTP services, so you just need to list the other ones in this file. Now, create the file:
- Code: Select all
vi mDNSResponder.conf
My NAS only comes with the vi editor. vi probably isn't the most intuitive text editor for "newbies" to use. Basically, press "I" to go into insert mode and enter the following text:
- Code: Select all
# mDNSResponder conf file
#
# name type domain port text record
mynas _ssh._tcp local. 22
mynas _ftp._tcp local. 21
mynas-afp _afpovertcp._tcp local. 548
mynas-smb _smb._tcp local. 139
Then, press "ESC" to exit insert mode, and type ":wq" to write your changes and quit.
You can see that I'm broadcasting the SSH service (which would include SFTP), the FTP service, AFP and Samba/CIFS file sharing. Just leave out the ones you don't need, or comment them out with a # at the beginning of the line. You'll note that I've given different names to the AFP and SMB services ... otherwise you'll have two entries in Finder and not know which is which. If you are only using one method to file share, I'd just comment the other one and use the same name. I should point out, if it isn't obvious, that the first column ("name") is what will appear in Finder. You can use longer names with punctuation and spaces if you like, but enclose it all in quotes, i.e.
- Code: Select all
"Joe's CS407e" _afpovertcp._tcp local. 548
If everything is done correctly, you just need to stop and restart iTunes sharing. I haven't figured out how to get mDNSResponder running without iTunes sharing, so that's the only "quirk" to this process.
Hope that helps everyone!








