[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [+] |
OS: | FreeBSD-4.1R (しかも VMware 上…) |
IP: | 192.168.0.1 |
管理するドメイン: | in.usupi.org |
外部参照DNS: | 192.168.0.254 |
source: | djbdns-1.05.tar.gz |
daemontools-0.70.tar.gz → 詳しくはこちら |
% tar xfz djbdns-1.05.tar.gz % cd djbdns-1.05 % make % su # make setup check |
# pw groupadd dns -g 70 # pw useradd dnscache -u 71 -g 70 -d /usr/local/etc/dnscache -s /sbin/nologin # pw useradd dnslog -u 72 -g 70 -d /usr/local/etc/dnscache -s /sbin/nologin # pw useradd tinydns -u 73 -g 70 -d /usr/local/etc/tinydns -s /sbin/nologin |
# tinydns-conf tinydns dnslog /usr/local/etc/tinydns 192.168.0.1 |
# cd /usr/local/etc/tinydns/root # ./add-ns in.usupi.org 192.168.0.1 # ./add-ns 0.168.192.in-addr.arpa 192.168.0.1 # ./add-host tamao.in.usupi.org 192.168.0.211 ...略 # ./add-alias www.in.usupi.org 192.168.0.211 # ./add-mx in.usupi.org 192.168.0.11 # make |
# ln -s /usr/local/etc/tinydns /usr/local/service |
% dnsq a tamao.in.usupi.org 192.168.0.1 1 tamao.in.usupi.org: 95 bytes, 1+1+1+1 records, response, authoritative, noerror query: 1 tamao.in.usupi.org answer: tamao.in.usupi.org 86400 A 192.168.0.211 authority: in.usupi.org 259200 NS a.ns.in.usupi.org additional: a.ns.in.usupi.org 259200 A 192.168.0.1 |
# dnscache-conf dnscache dnslog /usr/local/etc/dnscache |
# cd /usr/local/etc/dnscache/root/servers # echo 192.168.0.1 > in.usupi.org # echo 192.168.0.1 > 0.168.192.in-addr.arpa # mv @ @.0 # echo 192.168.0.254 > @ |
# echo 1 > /usr/local/etc/dnscache/env/FORWARDONLY |
# ln -s /usr/local/etc/dnscache /usr/local/service |
% dnsqr a www.in.usupi.org 1 ftp.in.usupi.org: 58 bytes, 1+1+0+0 records, response, noerror query: 1 ftp.in.usupi.org answer: ftp.in.usupi.org 86400 A 192.168.0.211 |
# svc -t /usr/local/service/tinydns あるいは dnscache |
[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [-] | |
usu@usupi.org | Last modified : Mon Sep 30 12:22:36 2019 |