Blogs‎ > ‎

QNAP Turbo NAS as a Home Server

posted 23 Jun 2015, 05:26 by Andrew at Lycom   [ updated 25 Jun 2015, 09:45 ]

Who needs a home server these days? Time was, most geeks had one (or two) and then some more for passing exams. Then media servers became all the rage. Now everything is supposed to be in The Cloud.

I have been running a QNAP Turbo NAS at home as my home office server for some time - it fulfils all my requirements:

  • large disk capacities, with RAID and lots of backup options
  • low power / energy usage
  • quiet
  • media storage / server capabilites

But my main reason for choosing it was the large add-on application environment. There are a whole host of additional options - from synchronisation with Google Drive and other cloud storage utilities to antivirus scanning.

One missing element was the lack of an internal DNS hosting server, which I needed for my home production / test network.

This is how to set it up:

BIND DNS Server Installation on QNAP Turbo NAS

I installed the Mandriva Pulse and Optware IPKG applications, these give you a chrooted Linux environment. 

The Mandriva Pulse package was OK, but not much interest to me - what you really need is the IPKG system, together with the IPKG Web package:

ipkg-web 7-7 7-7 A web frontend for ipkg

which gives you a basic interface:

https://server:8081/Optware/?

Which allows you to query and install various packages from http://ipkg.nslu2-linux.org/  which is the The Linksys NSLU2 project.

From there you can install the BIND DNS server:

bind 9.6.1.3-4 9.6.1.3-4 Bind provides a full name server package, including zone masters, slaves, zone transfers, security multiple views.

and various others that take your fancy.

Ssh to your box with your admin credentials:

ssh server -l admin

Then you want to look at this page: http://www.nslu2-linux.org/wiki/HowTo/BuildPrimaryDNSServer

Check it over:

/var/log] # /opt/etc/init.d/S09named 

Usage: /opt/etc/init.d/S09named {start|stop|status|restart|condrestart}

[/var/log] # /opt/etc/init.d/S09named start

Starting DNS Services: started

[/var/log] # /opt/etc/init.d/S09named status

version: 9.6.1-P3

number of zones: 16

debug level: 0

xfers running: 0

xfers deferred: 0

soa queries in progress: 0

query logging is OFF

recursive clients: 0/0/1000

tcp clients: 0/100


OK, so server is up and running, now configure.

I ended up with a simple single zone DNS file 'db.lycom.net' for my home zone (as per the instructions on the NSLU2 link above).

#nano /opt/etc/named/named.conf

to check the config.

Then

# nano /opt/etc/named/db.lycom.net

to edit the individual zone file and add my addresses. Restarted BIND to reload load

/opt/etc/init.d/S09named restart

Check it over from another box with dig / nslookup as your prefer:

nslookup test.address dns.server.address

and it should return the correct address. I also enabled BIND to forward queries to my router, so now the NAS box acts as a fully-fledged DNS server.