十六薙夜血 发表于 2007-8-16 10:05:08

F7下DNS死活无法启动,求助!谢谢好心人!

F7,默认安装DNS
本机 192.168.9.16
hostname thanatosFC
配置目标thanatos.com

named.caching-nameserver.conf 文件(基本没有修改,就是把listen-on port 53后面的127.0.0.1改成192.168.9.16了,也就是本机地址):

//
// 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 { 192.168.9.16; };
      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";
      allow-query   { localhost; };
};
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";
};


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
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
      type hint;
      file "named.ca";
};

zone "localdomain" IN {
      type master;
      file "localdomain.zone";
      allow-update { none; };
};

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; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
      type master;
      file "named.ip6.local";
      allow-update { none; };
};

zone "255.in-addr.arpa" IN {
      type master;
      file "named.broadcast";
      allow-update { none; };
};

zone "0.in-addr.arpa" IN {
      type master;
      file "named.zero";
      allow-update { none; };
};

zone "thanatos.com" {
      type master;
      file "thanatos.com";
};

zone "9.168.192.in-addr.arpa" IN {
      type master;
      file "9.168.192.arpa";
};


thanatos.com文件

$TTL 3h
thanatos.com.   IN      SOA   thanatosFC.   thanatosFC.(
1;
3h;
1h;
1w;
1h);
thanatos.com.         IN      NS      thanatosFC.
www.thanatos.com.       IN      A       192.168.9.16
thanatosFC            IN      A       192.168.9.16

9.168.192.arpa文件
$TTL    3h
9.168.192.in-addr.arpa. IN      SOA   thanatosFC.   thanatosFC.(
1;
3h;
1h;
1w;
1h);
9.168.192.in-addr.arpa.         IN      NS      thanatosFC.
16.9.168.192.in-addr.arpa.      IN      PTR   thanatosFC.
16.9.168.192.in-addr.arpa.      IN      PTR   www.thanatos.com.

还望高手指点,已经一天了,就是启动失败,郁闷……

而且我图形界面看了一下服务,named服务显示没有开启,启动也是失败,右边有这么一句:
rndc:connect failed:127.0.0.1#953:connection refused

这是怎么回事啊?谢谢啦!

这是我service named restart的相关日志,为什么我是root还没有相关权限啊?
Aug 16 14:55:53 ThanatosFC named: found 1 CPU, using 1 worker thread
Aug 16 14:55:53 ThanatosFC named: loading configuration from '/etc/named.caching-nameserver.conf'
Aug 16 14:55:53 ThanatosFC named: /etc/named.caching-nameserver.conf:36: open: /etc/named.rfc1912.zones: permission denied
Aug 16 14:55:53 ThanatosFC named: loading configuration: permission denied
Aug 16 14:55:53 ThanatosFC named: exiting (due to fatal error)

[ 本帖最后由 十六薙夜血 于 2007-8-16 15:08 编辑 ]
页: [1]
查看完整版本: F7下DNS死活无法启动,求助!谢谢好心人!