2.3.5++ 同名の違うバージョンありダウンロード注意
cd /usr/local/src
tar zxvf gnudip-2.3.5.tar.gz
cd gnudip-2.3.5
mv gnudip /usr/local/
cd /usr/local/gnudip/lib
rm dbprefs.pm
rm dbusers.pm
ln -s dbprefs_flat.pm /usr/local/gnudip/lib/dbprefs.pm
ln -s dbusers_flat.pm /usr/local/gnudip/lib/dbusers.pm
cd /usr/local/gnudip/etc/
rm K*
dnssec-keygen -a hmac-md5 -b 128 -n HOST gnudip-key
chmod 400 Kgnudip-key.+157+*
chown www:www *
chmod 660 gnudip.conf
vi gnudip.conf
*******************************************************************
nsupdate = -k /usr/local/gnudip/etc/Kgnudip-key.+157+43008.private
*******************************************************************
chmod 400 gnudip.conf
vi /etc/namedb/working/gnudip-keyfile
*******************************
key gnudip-key {
algorithm hmac-md5;
// the TSIG key generated by nsupdate
secret "RTe+3qgiiV9dYq7csk6uPQ==";
};
*******************************
cd /etc/namedb/
vi named.conf
********************************
include "gnudip-keyfile";
zone "dip.ab-ab.net" {
type master;
file "/etc/namedb/dynamic/dip.ab-ab.net.zone";
allow-query { any; };
update-policy { grant gnudip-key subdomain dip.ab-ab.net; };
};
********************************
vi /etc/namedb/dynamic/dip.ab-ab.net.zone
********************************
$ORIGIN .
$TTL 3600 ; 1 hour
dip.ab-ab.net IN SOA kenji.zenno.net. info.zenno.com. (
0 ; serial
600 ; refresh (10 minutes)
300 ; retry (5 minutes)
604800 ; expire (1 week)
0 ; minimum (0 seconds)
)
NS kenji.zenno.net.
A 125.53.25.136
********************************
該当ゾーンのSOAが自サイトに向いていないとエラーになる。
vi /usr/local/etc/apache22/Includes/gnudip.conf
**********************************************************
Alias /gnudip/html/ "/usr/local/gnudip/html/"
<Directory "/usr/local/gnudip/html/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /gnudip/cgi-bin/ "/usr/local/gnudip/cgi-bin/"
<Directory "/usr/local/gnudip/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
**********************************************************
/etc/rc.d/named restart
/usr/local/etc/rc.d/apache22 restart
/usr/local/gnudip/sbin/gdipadmin.pl admin ********
cd /usr/local/gnudip/run
chown -R www:www *
patch -p0 < /mnt/src/gnudip.patch
pkg_add -r ja-p5-Jcode
# Jcode.pm を使う場合は &Jcode::convert(STR,"jis");
cp /usr/local/gnudip/lib/mailgen.pm /usr/local/gnudip/lib/mailgen.pm.orig
cp /usr/local/gnudip/lib/htmlgen.pm /usr/local/gnudip/lib/htmlgen.pm.orig
cp /mnt/src/*lgen.pm /usr/local/gnudip/lib/
syslog.conf
- *.notice;authpriv.none;kern.debug;mail.crit;news.err /var/log/messages
+ *.notice;authpriv.none;kern.debug;mail.crit;news.err;user.none /var/log/messages
+ user.* /var/log/dip.log
newsyslog.conf
+ /var/log/dip.log 644 3 100 * ZC
# .jnl ファイルを反映して無くすおまじない
rndc freeze
rndc thaw
クライアントは[[FreeBSD/gdipc]]を参照
----
[[FreeBSD]]