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.
🐧 5 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
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?
I’m runing FreeBSD 10.1-RELEASE.
Below, I am using the IP address of my VPS — 80.240.140.221. If you are looking at my comment trying to set it up for yourself, you will of course need to replace my IP with yours.
I did the same as shown here up until the end, except at the end, instead of
I did
Then, furthermore, I did:
Confirmed that it’s running:
Is it working?
What does the log say?
It’s receiving requests. Good. Probably the reason why it’s not responding is because there is more configuration to be done.
Hopefully, http://cr.yp.to/djbdns/run-server.html and http://tinydns.org/ covers the remainder of the configuration that needs to be done.
Indeed, http://cr.yp.to/djbdns/run-server.html provides what is needed for a basic configuration.
I haven’t made the VPS authorative of the domains for real yet, not sure if/when I will, but here we see it working from my Ubuntu-running desktop querying the FreeBSD VPS:
(My previous comment is in reply to my own comment preceeding it.)
The commenting system expanded www dot erikano dot net to http://www.erikano.net. Obviously, the add-alias command for www dot erikano dot net did not include protocol or trailing slash.