Daily Archives: September 6, 2009

TinyDNS all in one

0
Filed under WEB-DEV-LOG
Tagged as

Install djbdns:
# portsnap fetch update
# cd /usr/ports/dns/djbdns
# make install clean && rehash
Create users and required directories:
# pw groupadd dnsusers
# pw useradd tinydns -s /bin/nologin -G dnsusers
# pw useradd dnslog -s /bin/nologin -G dnsusers
# pw useradd axfrdns -s /bin/nologin -G dnsusers
# mkdir /var/service/
# echo ‘svscan_enable=”YES”‘ >> /etc/rc.conf
# /usr/local/etc/rc.d/svscan.sh start
Create Directory For Your Zone File

You need to create /var/ns2.nixcraft.in/ as follows:
# mkdir /var/ns2.nixcraft.in
# tinydns-conf tinydns dnslog /var/ns2.nixcraft.in 203.51.2.1
# ln -s /var/ns2.nixcraft.in /var/service/
# sockstat -4 -p 53

DNS install

0
Filed under WEB-DEV-LOG
Tagged as

# pw groupadd dnsusers
# pw useradd tinydns -s /bin/nologin -G dnsusers

Verify that UDP port # 53, opened:
# sockstat -4
# sockstat -4 -p 53

You can now test your setup using standard dns tools:
# host nixcraft.in
You can also use djbdns client tool called dnsip to lookup IP addresses:
# dnsip ns1.nixcraft.in

TinyDNS

0
Filed under WEB-DEV-LOG
Tagged as

thedjbway.org/ucspi-tcp/howdyd_1.html

* group “nofiles”
* user “multilog”, member group “nofiles”

Add an account named “tinydns” to your system, group “nofiles”, disabled password and login shell.

“dnscache” will have been set up on your system, member of group “nofiles”,