tinyDNS & axfrDNS

First of all install DNS cache.

addgroup --system tinydns
addgroup --system axfrdns
adduser --no-create-home --disabled-login --shell /bin/false --system --ingroup tinydns tinydns
adduser --no-create-home --disabled-login --shell /bin/false --system --ingroup axfrdns axfrdns
tinydns-conf tinydns dnslog /etc/djbdns/tinydns <IP>
mkdir /var/log/djbdns/tinydns
chown dnslog:dnslog /var/log/djbdns/tinydns
chmod 02755 /var/log/djbdns/tinydns

axfrdns-conf axfrdns dnslog /etc/djbdns/axfrdns /etc/djbdns/tinydns <IP>
mkdir /var/log/djbdns/axfrdns
chown dnslog:dnslog /var/log/djbdns/axfrdns
chmod 02755 /var/log/djbdns/axfrdns

/etc/djbdns/tinydns/log/run

exec setuidgid dnslog multilog t n10 s5000000 /var/log/djbdns/tinydns

/etc/djbdns/axfrdns/log/run

exec setuidgid dnslog multilog t n10 s5000000 /var/log/djbdns/axfrdns
ln -s /etc/djbdns/tinydns /service
ln -s /etc/djbdns/axfrdns /service

/etc/djbdns/tinydns/root/Makefile

build:  zone*
        /bin/rm ./data
        /bin/cat ./zone* > ./data
        /usr/bin/sort -u ./data > ./data_save
        /bin/mv ./data_save ./data

Sample zone file:

Zxxx.hu:ns.dns1.hu:hostmaster.dns1.hu:2009010101:86400:7200:3600000:3600
&xxx.hu::ns.dns1.hu
&xxx.hu::ns.dns2.hu
=xxx.hu:IP
@xxx.yy:IP:mail.xxx.hu:10
+www.xxx.hu:IP

/etc/djbdns/axfrdns/tcp

# hureg.nic.hu
193.239.149.97:allow
# www.nic.hu
193.239.149.113:allow

:deny



http://tinydns.org/
http://cr.yp.to/djbdns.html
http://www.linuxvilag.hu/content/files/cikk/64/cikk_64_61_64.pdf

 
Logged in as: Oszkár Kmetti
other/tinydns.txt · Last modified: 2009.02.02 11:29 by oszi
 
Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki