FreeBSD/gnudip
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
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+430...
********************************************************...
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.a...
};
********************************
vi /etc/namedb/dynamic/dip.ab-ab.net.zone
********************************
$ORIGIN .
$TTL 3600 ; 1 hour
dip.ab-ab.net IN SOA kenji.zenno.net. info.ze...
0 ; serial
600 ; refresh (10 ...
300 ; retry (5 min...
604800 ; expire (1 we...
0 ; minimum (0 s...
)
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/l...
cp /usr/local/gnudip/lib/htmlgen.pm /usr/local/gnudip/l...
cp /mnt/src/*lgen.pm /usr/local/gnudip/lib/
syslog.conf
- *.notice;authpriv.none;kern.debug;mail.crit;news.err ...
+ *.notice;authpriv.none;kern.debug;mail.crit;news.err;u...
+ user.* /var/l...
newsyslog.conf
+ /var/log/dip.log 644 3 100...
# .jnl ファイルを反映して無くすおまじない
rndc freeze
rndc thaw
クライアントは[[FreeBSD/gdipc]]を参照
----
[[FreeBSD]]
終了行:
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+430...
********************************************************...
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.a...
};
********************************
vi /etc/namedb/dynamic/dip.ab-ab.net.zone
********************************
$ORIGIN .
$TTL 3600 ; 1 hour
dip.ab-ab.net IN SOA kenji.zenno.net. info.ze...
0 ; serial
600 ; refresh (10 ...
300 ; retry (5 min...
604800 ; expire (1 we...
0 ; minimum (0 s...
)
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/l...
cp /usr/local/gnudip/lib/htmlgen.pm /usr/local/gnudip/l...
cp /mnt/src/*lgen.pm /usr/local/gnudip/lib/
syslog.conf
- *.notice;authpriv.none;kern.debug;mail.crit;news.err ...
+ *.notice;authpriv.none;kern.debug;mail.crit;news.err;u...
+ user.* /var/l...
newsyslog.conf
+ /var/log/dip.log 644 3 100...
# .jnl ファイルを反映して無くすおまじない
rndc freeze
rndc thaw
クライアントは[[FreeBSD/gdipc]]を参照
----
[[FreeBSD]]
ページ名: