★2個目のドメイン
二つ目のドメインとしてyaguma.netをVALUE-DOMAINで1090円/年で取り,
レジストラでns.yaguma.comとns14.zoneedit.comを登録.
ゾーンファイルを
/var/named/yaguma.net.local
$TTL 1D
@ IN SOA ns.yaguma.com. tanaka.yaguma.com. (
2003011006 ;serial
7200 ;refresh
7200 ;retry
604800 ;expire
1D ) ;minimum
IN NS ns.yaguma.com.
IN MX 10 mail.yaguma.com.
IN A 192.168.1.101
www IN A 192.168.1.101
mail IN A 192.168.1.101
bfle IN A 192.168.1.1
/var/named/yaguma.net.zone
$TTL 1D
@ IN SOA ns.yaguma.com. tanaka.yaguma.com. (
2003070501 ;serial
3H ;refresh
3600 ;retry
604800 ;expire
86400 ;minimum
)<
IN NS ns.yaguma.com.
IN NS ns14.zoneedit.com.
IN MX 10 mail.yaguma.net.
www IN A 219.111.9.211
mail IN A 219.111.9.211
/etc/named.confのlocal側に
// 自ドメイン正引き(local側)
zone "yaguma.net" {
type master;
file "yaguma.net.local";
};
/etc/named.confのwan側に
zone "yaguma.net" {
type master;
file "yaguma.net.zone";
allow-transfer { 209.126.159.80; };//ns14.zoneedit.comのIPアドレス
notify yes;
};
を付け加えて
# service named restart
yaguma.netが使えるようになりました.
ns IN A *.*.*.*としなくて良いところがみそですね.
とりあえず動いてます.
Copyright 2002-2003 Kai All Rights Reserved & This site is Link Free
戻る