Re: bind設定
( No.1 )
|
 |
- 日時: 2007/05/07 17:44
- 名前: 管理者
-
「named.caching-nameserver.conf」の内容を教えて貰えますか?
「include : file not found」で「"/etc/XXXX.com.lan;"」とかになっていませんか?
|
Re: bind設定
( No.2 )
|
 |
- 日時: 2007/05/07 19:49
- 名前: まる
-
管理人さんこんにちは。
「named.caching-nameserver.conf」の内容は以下のとおりになっております。 返答よろしくお願いします。
// // named.caching-nameserver.conf // // Provided by Red Hat bind-config package to configure the // ISC BIND named(8) DNS server as a caching only nameserver // (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // // DO NOT EDIT THIS FILE - use system-config-bind or an editor // to create named.conf - edits to this file will be lost on // bind-config package upgrade. // options { //listen-on port 53 { 127.0.0.1; }; //listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; query-source port 53; //query-source-v6 port 53; allow-query { any; }; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; view localhost_resolver { match-clients { localhost; }; match-destinations { localhost; }; recursion yes; include "/etc/named.rfc1912.zones"; include "/etc/nemed.xxxxx.com.lan; }; view internal { match-clients { localnets; }; match-destinations { localnets; }; recursion yes; include "/etc/named.rfc1912.zones"; include "/etc/named.xxxx.com.lan"; };
view external { match-clients { any; }; match-destinations { any; }; recursion no; include "/etc/named.rfc1912.zones"; include "/etc/named.xxxx.com.wan"; };
|
Re: bind設定
( No.3 )
|
 |
- 日時: 2007/05/07 19:51
- 名前: 管理者
-
まるさん、はじめまして。
> view localhost_resolver { > match-clients { localhost; }; > match-destinations { localhost; }; > recursion yes; > include "/etc/named.rfc1912.zones"; > include "/etc/nemed.xxxxx.com.lan; > };
上記に誤りがあります。
> include "/etc/nemed.xxxxx.com.lan; 最後の「"」が抜けています。 以下の様に正しく設定してください。
include "/etc/nemed.xxxxx.com.lan";
|
Re: bind設定
( No.4 )
|
 |
- 日時: 2007/05/07 19:58
- 名前: まる
-
わかりました。
ありがとうございます。
|
Re: bind設定
( No.5 )
|
 |
- 日時: 2007/05/07 20:02
- 名前: まる
-
何度もすいません。
一難去ってまた一難でした。 次はこんなエラーです。 同じところだと思うのですが異常な箇所は見付かりません。
named を起動中: named 設定でエラー: : /etc/named.caching-nameserver.conf:36: open: /etc/nemed.xxxx.com.lan: file not found
|
Re: bind設定
( No.6 )
|
 |
- 日時: 2007/05/07 20:05
- 名前: 管理者
-
以下の情報を教えていただけますか?
@ # ls /etc/nemed.xxxx.com.lan
A # cat /etc/sysconfig/named | grep ROOTDIR
|
Re: bind設定
( No.7 )
|
 |
- 日時: 2007/05/07 21:08
- 名前: まる
-
>以下の情報を教えていただけますか?
>@ ># ls /etc/nemed.xxxx.com.lan ファイルが見付かりませんです。
>A
# ROOTDIR="/some/where" -- will run named in a chroot environment. # at startup. Don't add -t here, use ROOTDIR instead.# its zone files and create files in its $ROOTDIR/var/named # Slave zones should reside in the $ROOTDIR/var/named/slaves
|
Re: bind設定
( No.8 )
|
 |
- 日時: 2007/05/07 23:05
- 名前: 管理者
-
>> 以下の情報を教えていただけますか?
>> @ >> # ls /etc/nemed.xxxx.com.lan > > ファイルが見付かりませんです。
「nemed.xxxx.com.lan」ファイルを何処に作成しましたか?
『http://kajuhome.com/bind.shtml#n05』の様に、「/var/named/」配下に作成した場合は、 「include "/var/named/nemed.xxxxx.com.lan";」となります。 ^^^^↑^^^^ ここに注意
|