How do I configure tinydns a database-driven dns server under FreeBSD operating systems?
You need to create three user accounts under FreeBSD and add all of them to a group. This can be done using pw command as follows:
Step#1: Create DJBDNS Server Group
Type the following command:
# pw groupadd dnsusers
Step#2: Create TinyDNS Server User
Type the following command:
# pw useradd tinydns -s /bin/nologin -G dnsusers
Step#3: Create AxfrDNS Server User
Type the following command:
# pw useradd dnslog -s /bin/nologin -G dnsusers
Step#4: Create DJNDNS Server Log User
Type the following command:
# pw useradd axfrdns -s /bin/nologin -G dnsusers
Step#5: Create /var/service directory
Type the following command:
# mkdir /var/service/
Step#6: Turn On daemontools (svscan) Service
Type the following command:
# echo 'svscan_enable="YES"' >> /etc/rc.conf
# /usr/local/etc/rc.d/svscan.sh start
Now, your server is ready to use. All you have to do is create zone for ns1.nixcraft.in.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop















{ 1 comment… read it below or add one }
I am running FreeBSD 8 and have followed the first page. On the last step, I do as prompted:
[root@vps ~]# echo ‘svscan_enable=”YES”‘ >> /etc/rc.conf
[root@vps ~]# /usr/local/etc/rc.d/svscan.sh start
bash: /usr/local/etc/rc.d/svscan.sh: No such file or directory
Svscan exists though:
[root@vps ~]# whereis svscan
svscan: /usr/local/bin/svscan /usr/local/man/man8/svscan.8.gz
Running Svscan:
[root@vps ~]# /usr/local/bin/svscan
supervise: fatal: unable to start namedb/run: file does not exist
Is there any solution?