Installing TinyDNS on CentOS 5.5
2011-02-23 11:19
621 查看
Requirements of TinyDNS
Copied with permission from the author. Original site is at http://www.djbdnsrocks.org
1) At least 2 unused IP addresses. 1 is usually fine.
2) Daemontools - This was installed if you did my qmail install. If not, please install that step!
3) UCSPI-TCP - This was also installed if you did my qmail install. If not, please install that step too!
4) You will want ports 22 (SSH) and 53 (DNS) open. If you don't want
anyone outside of your network using your DNS server (Personally, I
don't pass this port either) don't forward port 53.
That is about it. When all those requirements have been met, You can now continue.
Installing TinyDNS
The first step is to install the daemon-tools:
# cd /opt
# wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
# gunzip daemontools-0.76.tar
# tar -xpf daemontools-0.76.tar
# rm -f daemontools-0.76.tar
# cd admin/daemontools-0.76
# vi src/conf-cc
Append the following line at the end of the gcc line: -include /usr/include/errno.h
# ./package/install
One other package we need to prepare for djbdns to be functional is ucspi:
# cd /opt
# wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
# gunzip ucspi-tcp-0.88.tar
# tar -xf ucspi-tcp-0.88.tar
# cd ucspi-tcp-0.88
# vi src/conf-cc
Append the following line at the end of the gcc line: -include /usr/include/errno.h
# make
# make setup check
The next step is the document publication:
# cd /opt
# wget http://cr.yp.to/djbdns/doc.tar.gz
Next we will unzip docs under /doc
:
# gunzip < doc.tar.gz | (cd /; tar -xf -)
Use the following script to merge in system docs:
#!/bin/sh
for i in packages commands cfunctions fileformats
do
sort -f /dev/null `find /doc/merge -name $i.html` > /doc/$i.new
mv /doc/$i.new /doc/$i.html
done
Save script into a file: script.sh
# chmod +x script.sh
# ./script.sh
# cd /opt
# wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
# gunzip djbdns-1.05.tar
# tar -xf djbdns-1.05.tar
# cd djbdns-1.05
# vi src/conf-cc
Append the following line at the end of the gcc line: -include /usr/include/errno.h
# make
# make setup check
All compiling gets done.
The next step is the dns server configuration.
Configuring TinyDNS
We need two system user accounts:
#groupadd -g 200 nofiles
#useradd -g nofiles -u 201 -d /var/dnscache -c "tinydns" -s /sbin/nologin tinydns
#useradd -g nofiles -u 202 -d /var/dnscache -c "tinydns" -s /sbin/nologin tinylog
#tinydns-conf tinydns tinylog /var/tinydns <listened IP>
Starting TinyDNS
Now start the service with the following command:
#ln -sf /var/tinydns /service
You can verify it is running by typing:
#svstat /service/tinydns
Configuring TinyDNS
Once again, we need two system user accounts:
#useradd -g nofiles -u 203 -d /var/dnscache -c "axfrdns" -s /sbin/nologin axfrdns
#useradd -g nofiles -u 204 -d /var/dnscache -c "axfrdns" -s /sbin/nologin axfrlog
#axfrdns-conf axfrdns axfrlog /var/axfrdns /var/tinydns <listened IP>
Starting axfrDNS
Now start the service with the following command:
#ln -sf /var/axfrdns /service
You can verify it is running by typing:
#svstat /service/axfrdns
Stop TinyDNS & axfrDNS
svc -d /service/tinydns
svc -d /service/axfrdns
Start TinyDNS & axfrDNS
svc -u /service/tinydns
svc -u /service/axfrdns
Copied with permission from the author. Original site is at http://www.djbdnsrocks.org
1) At least 2 unused IP addresses. 1 is usually fine.
2) Daemontools - This was installed if you did my qmail install. If not, please install that step!
3) UCSPI-TCP - This was also installed if you did my qmail install. If not, please install that step too!
4) You will want ports 22 (SSH) and 53 (DNS) open. If you don't want
anyone outside of your network using your DNS server (Personally, I
don't pass this port either) don't forward port 53.
That is about it. When all those requirements have been met, You can now continue.
Installing TinyDNS
The first step is to install the daemon-tools:
# cd /opt
# wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
# gunzip daemontools-0.76.tar
# tar -xpf daemontools-0.76.tar
# rm -f daemontools-0.76.tar
# cd admin/daemontools-0.76
# vi src/conf-cc
Append the following line at the end of the gcc line: -include /usr/include/errno.h
# ./package/install
One other package we need to prepare for djbdns to be functional is ucspi:
# cd /opt
# wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
# gunzip ucspi-tcp-0.88.tar
# tar -xf ucspi-tcp-0.88.tar
# cd ucspi-tcp-0.88
# vi src/conf-cc
Append the following line at the end of the gcc line: -include /usr/include/errno.h
# make
# make setup check
The next step is the document publication:
# cd /opt
# wget http://cr.yp.to/djbdns/doc.tar.gz
Next we will unzip docs under /doc
:
# gunzip < doc.tar.gz | (cd /; tar -xf -)
Use the following script to merge in system docs:
#!/bin/sh
for i in packages commands cfunctions fileformats
do
sort -f /dev/null `find /doc/merge -name $i.html` > /doc/$i.new
mv /doc/$i.new /doc/$i.html
done
Save script into a file: script.sh
# chmod +x script.sh
# ./script.sh
# cd /opt
# wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
# gunzip djbdns-1.05.tar
# tar -xf djbdns-1.05.tar
# cd djbdns-1.05
# vi src/conf-cc
Append the following line at the end of the gcc line: -include /usr/include/errno.h
# make
# make setup check
All compiling gets done.
The next step is the dns server configuration.
Configuring TinyDNS
We need two system user accounts:
#groupadd -g 200 nofiles
#useradd -g nofiles -u 201 -d /var/dnscache -c "tinydns" -s /sbin/nologin tinydns
#useradd -g nofiles -u 202 -d /var/dnscache -c "tinydns" -s /sbin/nologin tinylog
#tinydns-conf tinydns tinylog /var/tinydns <listened IP>
Starting TinyDNS
Now start the service with the following command:
#ln -sf /var/tinydns /service
You can verify it is running by typing:
#svstat /service/tinydns
Configuring TinyDNS
Once again, we need two system user accounts:
#useradd -g nofiles -u 203 -d /var/dnscache -c "axfrdns" -s /sbin/nologin axfrdns
#useradd -g nofiles -u 204 -d /var/dnscache -c "axfrdns" -s /sbin/nologin axfrlog
#axfrdns-conf axfrdns axfrlog /var/axfrdns /var/tinydns <listened IP>
Starting axfrDNS
Now start the service with the following command:
#ln -sf /var/axfrdns /service
You can verify it is running by typing:
#svstat /service/axfrdns
Stop TinyDNS & axfrDNS
svc -d /service/tinydns
svc -d /service/axfrdns
Start TinyDNS & axfrDNS
svc -u /service/tinydns
svc -u /service/axfrdns
相关文章推荐
- New method for installing Python 2.6.4 (with mysql-python) on CentOS 5.5
- Installing KVM on CentOS 5.5
- CentOS5.5 下配置DNS
- Installing WRF/Chem on CentOS 7(转载修正)
- Install Ceph on CentOS 5.5
- Installing Virtualbox 4.1 on CentOS 6.2
- 「2013-1-24」Cadence ic5141 installation on CentOS 5.5 x86_64 (limited to personal use)
- Installing Python 2.7 on Centos 6.5
- Installing VMware tools on Centos 6.8 via yum
- Installing Xdebug on CentOS
- Installing RHEL EPEL Repo on Centos 5.x or 6.x
- Installing Ubiquiti Unifi Controller on CentOS 6.x
- Installing the Graphical Window System (X.org-X11) and the Default Desktop Environment on CentOS 6
- MySQL 5.5 on CentOS/RHEL 6.7
- Installing Hudson and JDK on centos, redhat or fedora.
- Installing Xen on CentOS 6 from source
- DNS deployment on CentOS
- Installing GitLab 2.1 on Centos 6
- Installing Apache Tomcat 5.5/6/7 with a multi-instance layout on Linux
- How to install Nvidia driver on a Xen kernel, CentOS 5.5(Final)