Named.conf配置文件
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver 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 
// caching-nameserver package upgrade.
//
options {
  listen-on port 53 { any; };
  listen-on-v6 port 53 { any; };
  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";
  allow-query     { any; };
  recursion yes;
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
zone "." IN {
  type hint;
  file "named.ca";
};
include "/etc/named.rfc1912.zones";
named.rfc1912.zones配置文件。。
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package 
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
// 
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "localhost.localdomain" IN {
  type master;
  file "named.localhost";
  allow-update { none; };
};
zone "localhost" IN {
  type master;
  file "named.localhost";
  allow-update { none; };
};
zone "abc.com" IN {
  type master;
  file "abc.com.zone";
};
zone "1.0.0.127.in-addr.arpa" IN {
  type master;
  file "named.loopback";
  allow-update { none; };
};
//zone "0.in-addr.arpa" IN {
//  type master;
//  file "named.empty";
//  allow-update { none; };
//};
zone "128.200.10.in-addr.arpa" IN{
  type master;
  file "128.200.10.zone";
};
正向的   abc.com.zone
$TTL 1D
@  IN SOA  dns.abc.com. root (
          42  ; serial
          1D  ; refresh
          1H  ; retry
          1W  ; expire
          3H )  ; minimum
    IN  NS  dns.abc.com.
dns  IN  A  10.200.128.220
www  IN   A  10.200.128.220
反向的  
$TTL 1D
@  IN SOA   dns.abc.com. root (
          42  ; serial
          1D  ; refresh
          1H  ; retry
          1W  ; expire
          3H )  ; minimum
      IN  NS  dns.abc.com.
220      IN  PTR  dns.abc.com.
220      IN   PTR  www.abc.com.
能启动,,但不能解析。。。。。。。
出现错误
.nslookup
>10.200.128.220
Nslookup:’’220.128.200.10.in-addr.arpa.”  is not a legal name (unexpected end of input)
>www.abc.com
Server :10.200.128.220
Address:10.200.128.220#53
**server can’t find www.abc.abc.com :servfail
回环能解析的
                  	
				

jieingdada 于 2009-05-13 10:05:00发表:
对了...还有那个文件的权限应该是777的
jieingdada 于 2009-05-13 10:04:04发表:
那个反向DNS应该写成:
zone "10.200.128.in-addr.arpa" IN{
type master;
file "128.200.10.zone";
};
jack_xuwei 于 2009-04-23 12:23:35发表:
本地 ip地址 及 dns 的 指向 也 应该是 自己