トップ 新規 編集 差分 一覧 ソース 検索 ヘルプ PDF RSS ログイン

tinydns

tinydns

[daemontools] [djb]

  • グループとアカウントの作成
pw groupadd djbdns -g 10053
pw useradd Gtinydns -u 1168820790 -g djbdns -d /nonexistent -s /sbin/nologin
pw useradd Gdnslog -u 1697246030 -g djbdns -d /nonexistent -s /sbin/nologin
  • ディレクトリの用意
mkdir -p /usr/local/etc/djb/
tinydns-conf Gtinydns Gdnslog /usr/local/etc/djb/tinydns 192.168.x.x
  • ログの圧縮設定(optional)
vi /usr/local/etc/djb/tinydns/log/run 
#!/bin/sh
exec setuidgid Gdnslog multilog !"/usr/bin/gzip" t ./main
  • 設定
cd /usr/local/etc/djb/tinydns/root
./add-ns example.local 192.168.x.x
  • 起動
mkdir -p /var/service
ln -s /usr/local/etc/djb/tinydns /var/service
sleep 5
svstat /var/service/*

IPv6 patch

link

最終更新時間:2003年09月25日 23時23分32秒