pw groupadd dns -g 65200 pw useradd dnscache -u 65200 -g dns -c "DJB dnscache" -d /var/dns -s /sbin/nologin pw useradd dnslog -u 65201 -g dns -c "DJB dnscache" -d /var/dns -s /sbin/nologin pw useradd dns -u 65202 -g dns -c "DJB dnscache" -d /var/dns -s /sbin/nologin |
tar zxvf daemontools-0.76.tar.gz cp -R admin/daemontools-0.76 /usr/local cd /usr/local/daemontools-0.76 ./package/install sh /etc/rc.local |
tar zxvf djbdns-1.05.tar.gz cd djbdns-1.05 make make setup check mkdir /var/dns |
dnscache-conf dnscache dnslog /var/dns/dnscache ln -s /var/dns/dnscache /service/dnscache |
vi /etc/resolv.conf nameserver 127.0.0.1 host www.google.com www.google.com is a nickname for www.google.akadns.net www.google.akadns.net has address 64.233.167.104 www.google.akadns.net has address 64.233.167.99 |
dnscache-conf dnscache dnslog /var/dns/dnscache IPアドレス |
touch /var/dns/dnscache/root/ip/192.168.0 |
ln -s /var/dns/dnscache /service/dnscache |
vi /etc/resolv.conf nameserver IPアドレス |