BIND on QNAP 209 (Linux)
NOTE: NAT’d DNS through a Netgear DG834N-V1 does not appear to work. I have tested on a Zyxel Prestige 660HW-61 and Netgear DGND3300 and these work.
[/] # ipkg install bind
Installing bind (9.5.0-P2-1) to root…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/bind_9.5.0-P2-1_arm.ipk
Installing openssl (0.9.7m-5) to root…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/openssl_0.9.7m-5_arm.ipk
Configuring bind
Running post-install
You must now create your named.conf file
When it is installed in /opt/etc/named/named.conf, execute
/opt/etc/init.d/S09named start
to start service
You will probably also want to create rndc.conf by running
rndc-confgen. Of course, you may want to set your name server
in the GUI to 127.0.0.1 or your local ip-address
Configuring openssl
Successfully terminated.
Now Setup Autostart.sh
mount /dev/mtdblock5 -t ext2 /tmp/config
cd /tmp/config
Create file called Autostart.sh Containing the following
******************
rm -rf /opt
ln -sf /share/MD0_DATA/optware/opt /opt
export PATH=$PATH:/opt/bin:/opt/sbin
for optscript in `ls /opt/etc/init.d/S* | grep -v ‘~’ | sort`
do
${optscript} start
done
***********************
chmod +x /tmp/config/autorun.sh
umount /dev/mtdblock5
Create /opt/etc/named/named.conf examples here http://www.zytrax.com/books/dns/ch6/
/opt/sbin/rndc-confgen
/opt/sbin/rndc-confgen -a
Add the following into the named.conf file
zone “tsls.co.uk” {
type slave;
file “/opt/etc/named/slave/tsls.co.uk”;
masters { 217.18.91.50; };
};
touch /opt/etc/named/slave/tsls.co.uk
repeat for each zone
/opt/etc/init.d/S09named reload
Setup web interface for managing BIND: *need to do
http://www.afn.org/~afn23397/archive.htm
Some more information here http://forum.qnap.com/viewtopic.php?f=90&t=10631
UPDATE LS 12-August-2009 – DNS now working Externally





Reader Comments
is it possible to run BIND on qnap 109 II? thanks
I don’t own a 109 II, however I believe the architecture is the same so can’t see why not
before
chmod +x /tmp/config/autorun.sh
I get
chmod: /tmp/config/autorun.sh: No such file or directory
help please
thanks
Wilson