Re: named 設定でエラー
( No.1 )
|
 |
- 日時: 2007/03/11 16:31
- 名前: 管理者
-
ファイルが無いといっていますね。
bind-chrootを適用していますか?
以下のコマンド結果を教えてください。
# cat /etc/sysconfig/named
|
Re: named 設定でエラー
( No.2 )
|
 |
- 日時: 2007/03/11 16:57
- 名前: TomTom
-
管理者様 いつもお世話になっています。res有難うございます。
bind-chrootを適用していますかについてですが、現在は適用していません。
# cat /etc/sysconfig/named 以下のように表示されています。 ---------------------------------------------------------------------------------------- [root@host ~]# cat /etc/sysconfig/named # BIND named process options # ~~~~~~~~~~~~~~~~~~~~~~~~~~ # Currently, you can use the following options: # # ROOTDIR="/some/where" -- will run named in a chroot environment. # you must set up the chroot environment # (install the bind-chroot package) before # doing this. # # OPTIONS="whatever" -- These additional options will be passed to named # at startup. Don't add -t here, use ROOTDIR instead. # # ENABLE_ZONE_WRITE=yes -- If SELinux is disabled, then allow named to write # its zone files and create files in its $ROOTDIR/var/named # directory, necessary for DDNS and slave zone transfers. # Slave zones should reside in the $ROOTDIR/var/named/slaves # directory, in which case you would not need to enable zone # writes. If SELinux is enabled, you must use only the # 'named_write_master_zones' variable to enable zone writes. # # ENABLE_SDB=yes -- This enables use of 'named_sdb', which has support # -- for the ldap, pgsql and dir zone database backends # -- compiled in, to be used instead of named. # # DISABLE_NAMED_DBUS=[1y]-- If NetworkManager is enabled in any runlevel, then # the initscript will by default enable named's D-BUS # support with the named -D option. This setting disables # this behavior.
以上です。よろしくお願いします。
|
Re: named 設定でエラー
( No.3 )
|
 |
- 日時: 2007/03/11 18:32
- 名前: 管理者
-
ゾーン「xxxxx.com」と「24.168.192.in-addr.arpa」は問題ありません
zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; };
zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; };
上記の「localhost.zone」と「named.local」が無いと言っています。 /var/named ディレクトリにファイルは存在しますか?
|
Re: named 設定でエラー
( No.4 )
|
 |
- 日時: 2007/03/11 19:10
- 名前: TomTom
-
管理者様 有難うございます。
/var/named/のディレクトリのなかに「localhost.zone」と「named.local」が見つからなかったため、 これらのファイルを作りました。下記の通りです。 これで、named をrestartさせた所、起動しているようです。が、いささかこれでよいのか 自信がありません。(^_^;)
localhost.zone −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− $TTL 86400
@ IN SOA xxxxx.com. root.xxxxx.com. ( 2007031100; Serial 3600 ; Refresh 900 ; Retry 604800 ; Expire 86400 ; negative(1 day) ) IN NS xxxxx.com. localhost IN A 127.0.0.1
named.local −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− $TTL 86400 @ IN SOA xxxxx.com. root.xxxxx.com. ( 2007031100 ; Serial 3600 ; Refresh 900 ; Retry 604800 ; Expire 86400 ; Minimum )
NS xxxxx.com.
1 PTR localhost.
以上よろしくお願いします。
|
Re: named 設定でエラー
( No.5 )
|
 |
- 日時: 2007/03/11 19:29
- 名前: 管理者
-
当方の内容は以下の通りです。
# cat /var/named/chroot/var/named/localhost.zone $TTL 86400 @ IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum
IN NS @ IN A 127.0.0.1 IN AAAA ::1
# cat /var/named/chroot/var/named/named.local $TTL 86400 @ IN SOA localhost. root.localhost. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1 IN PTR localhost.
一律同じなので、TomTomさんがご提示された内容にドメイン名「xxxxx.com」は変更しておいてください。 (上記をコピーする事をお勧めします。注意:当掲示板は半角スペース2文字を全角に変換していますので、半角に戻してからご利用ください。)
|
Re: named 設定でエラー
( No.6 )
|
 |
- 日時: 2007/03/11 20:25
- 名前: TomTom
-
管理者様 ご丁寧に有難うございます。
おかげさまで、ファイルを入れ替えることができました。 まだ、質問があるのですが、まとめてから 別スレを立てさせて頂きます。
有難うございました。
|