BIND server and DNS service on QNAP TS-453mini
QTS 4.x and the App Center have many applications et services available for Qnap. But there don’t seem to be a stand-alone DNS service. DNS can be enabled when configuring QNAP as a Domain Controller but -1- I don’t need a DC -2- that feature seems to go down quite often. So let’s run the good old BIND boy.
First of all, we need to add an extra application repository. Log into DSM and start the “App Center”. Click the « Settings » icon, select “App Repository” and click “Add”.
The repository URL is “http://store.qnapclub.eu/store.php" . When done, close the dialog box and click the “Refresh” button.
On the left pane, select the “Qnap Club (EU)” icon and search for “Bind”. Then click on the “Install” button. When installation is done, click the “Open” button beneath the Bind icon.
You won’t get much from the GUI. Everything happens under the hood. So now, connect to the Qnap using SSH remote connection.
BIND things are stored in “/share/CACHEDEV1_DATA/.qpkg/Bind/”. So edit “etc/named.conf” as you would usually do, create the zone files …
When everything is configured, start the daemon and check it has been enabled for starting on reboot:
# /share/CACHEDEV1_DATA/.qpkg/Bind/Bind.sh start # grep -A 5 Bind /etc/config/qpkg.conf [Bind] Name = Bind Class = null Status = complete Version = 18.104.22.168 Author = Guerithault Stephane (QoolBox) QPKG_File = Bind.qpkg Date = 2016-08-23 Shell = /share/CACHEDEV1_DATA/.qpkg/Bind/Bind.sh Install_Path = /share/CACHEDEV1_DATA/.qpkg/Bind RC_Number = 101 <b>Enable = TRUE</b> store = 4154e20ca5ad5b47997b516ed746c87c # ps -aef | grep named 23080 admin 17964 S ./named # /share/CACHEDEV1_DATA/.qpkg/Bind/bin/dig @127.0.0.1 +short www.google.fr 22.214.171.124
Et voilà. BIND is now up and running on the Qnap.
Note for later: The Bind.sh file could be modify to enable things like chroot and running “named” as something else than “admin”.