发新话题
打印

freeBSD DNS 问题

freeBSD DNS 问题

freeBSD DNS 问题
ndc restart
Jan 9 17:23:43 www named [711]:master zone "freebsd2.net" (IN) rejected due to errors (serial 20050109)
new pid is 712

请高手指点!      

TOP

你的/etc/namedb/named.conf是什么样的?      
林子大了,什么鸟都有......

TOP

看一下log      

TOP

thank you for your help!
named.conf
// $FreeBSD: src/etc/namedb/named.conf,v 1.14 2003/02/07 20:58:38 keramida Exp $
//
// Refer to the named.conf(5) and named(8) man pages for details.  If
// you are ever going to set up a primary server, make sure you
// understand the hairy details of how DNS works.  Even with
// simple mistakes, you can break connectivity for affected parties,
// or cause huge amounts of useless Internet traffic.

options {
        directory "/etc/namedb";
        pid-file "/var/run/named/pid";

// In addition to the "forwarders" clause, you can force your name
// server to never initiate queries of its own, but always ask its
// forwarders only, by enabling the following line:
//
//      forward only;

// If you've got a DNS server around at your upstream provider, enter
// its IP address here, and enable the line below.  This will make you
// benefit from its cache, thus reduce overall DNS traffic in the Internet.

/*        forwarders {
              127.0.0.1;
        };
*/
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;

        /*
         * If running in a sandbox, you may have to specify a different
         * location for the dumpfile.
         */
        // dump-file "s/named_dump.db";
};

// Note: the following will be supported in a future release.
/*
host { any; } {
        topology {
                127.0.0.0/8;
        };
};
*/

// Setting up secondaries is way easier and a rough example for this
// is provided below.
//
// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.

zone "." {
        type hint;
        file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "localhost.rev";
};

// RFC 3152
zone "1.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" {
        type master;
        file "localhost-v6.rev";
};

// RFC 1886 -- deprecated
zone "1.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.INT" {
        type master;
        file "localhost-v6.rev";
};

// NB: Do not use the IP addresses below, they are faked, and only
// serve demonstration/documentation purposes!
//
// Example secondary config entries.  It can be convenient to become
// a secondary at least for the zone your own domain is in.  Ask
// your network administrator for the IP address of the responsible
// primary.
//
// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
// (This is named after the first bytes of the IP address, in reverse
// order, with ".IN-ADDR.ARPA" appended.)
//
// Before starting to set up a primary zone, make sure you fully
// understand how DNS and BIND works.  There are sometimes
// non-obvious pitfalls.  Setting up a secondary is simpler.
//
// NB: Don't blindly enable the examples below. :-)  Use actual names
// and addresses instead.
//
// NOTE!!! FreeBSD can run bind in a sandbox (see named_flags in rc.conf).
// The directory containing the secondary zones must be write accessible
// to bind.  The following sequence is suggested:
//
//        mkdir /etc/namedb/s
//        chown bind:bind /etc/namedb/s
//        chmod 750 /etc/namedb/s

/*
zone "domain.com" {
        type slave;
        file "s/domain.com.bak";
        masters {
                192.168.1.1;
        };
};

zone "0.168.192.in-addr.arpa" {
        type slave;
        file "s/0.168.192.in-addr.arpa.bak";
        masters {
                192.168.1.1;
        };
};
*/

zone "freebsd2.net" {
      type master;
      file "freebsd2.net";
};

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

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

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

freebsd2.net
$TTL        3600

freebsd2.net.        IN        SOA        www.freebsd2.net. www.freebsd2.net. (
                                20050112        ; Serial
                                3600        ; Refresh
                                900        ; Retry
                                3600000        ; Expire
                                3600 )        ; Minimum
freebsd2.net.        IN        NS        www.freebsd2.net.
www.freebsd2.net.  IN   A       192.168.10.252
freebsd2.net.      IN   A       192.168.10.252
mail.freebsd2.net. IN   A       192.168.10.252
freebsd2.net.      IN   MX   5  mail.freebsd2.net.
ftp.freebsd2.net.  IN   CNAME   www.freebsd2.net.
www.freebsd2.net.  IN   CNAME   freebsd2.net.

www# netstat -a
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0  localhost.domain       *.*                    LISTEN
tcp4       0      0  10.10.10.1.domain      *.*                    LISTEN
tcp4       0      0  www.domain             *.*                    LISTEN
tcp4       0      0  www.49154              64.233.189.104.http    ESTABLISHED
tcp4       0      0  *.ssh                  *.*                    LISTEN
tcp6       0      0  *.ssh                  *.*                    LISTEN
udp4       0      0  *.49190                *.*
udp4       0      0  localhost.domain       *.*
udp4       0      0  10.10.10.1.domain      *.*
udp4       0      0  www.domain             *.*
udp4       0      0  *.syslog               *.*
udp6       0      0  *.syslog               *.*
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
c32e9690 stream      0      0 c339c924        0        0        0 /var/run/ndc
c32e9ec4 stream      0      0        0 c3389000        0        0
c3389000 stream      0      0        0 c32e9ec4        0        0
c338908c stream      0      0        0 c3389118        0        0 /var/tmp/orbit-root/linc-27e-0-6002fbb15aa9
c3389118 stream      0      0        0 c338908c        0        0
c33891a4 stream      0      0        0 c338971c        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c338971c stream      0      0        0 c33891a4        0        0
c3389578 stream      0      0        0 c3389690        0        0 /var/tmp/orbit-root/linc-27e-0-6002fbb15aa9
c3389690 stream      0      0        0 c3389578        0        0
c3389604 stream      0      0 c339430c        0        0        0 /var/tmp/orbit-root/linc-27e-0-6002fbb15aa9
c33894ec stream      0      0        0 c3389460        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c3389460 stream      0      0        0 c33894ec        0        0
c33893d4 stream      0      0        0 c3389348        0        0 /tmp/.ICE-unix/572
c3389348 stream      0      0        0 c33893d4        0        0
c33892bc stream    840      0        0 c3389230        0        0 /tmp/.X11-unix/X0
c3389230 stream      0      0        0 c33892bc        0        0
c327f578 stream      0      0        0 c327f604        0        0 /var/tmp/orbit-root/linc-268-0-6058660c932fc
c327f604 stream      0      0        0 c327f578        0        0
c327f690 stream      0      0        0 c327fd20        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c327fd20 stream      0      0        0 c327f690        0        0
c32e94ec stream      0      0        0 c32e9460        0        0 /var/tmp/orbit-root/linc-268-0-6058660c932fc
c32e9460 stream      0      0        0 c32e94ec        0        0
c32e93d4 stream      0      0 c3309820        0        0        0 /var/tmp/orbit-root/linc-268-0-6058660c932fc
c32e9348 stream      0      0        0 c32e908c        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c32e908c stream      0      0        0 c32e9348        0        0
c32e9000 stream      0      0        0 c327fec4        0        0 /tmp/.ICE-unix/572
c327fec4 stream      0      0        0 c32e9000        0        0
c327fe38 stream      0      0        0 c327fdac        0        0 /tmp/.X11-unix/X0
c327fdac stream      0      0        0 c327fe38        0        0
c327f4ec stream      0      0        0 c327f348        0        0 /var/tmp/orbit-root/linc-25e-0-605f52ccae99
c327f348 stream      0      0        0 c327f4ec        0        0
c327f3d4 stream      0      0        0 c327f460        0        0 /var/tmp/orbit-root/linc-266-0-605e19dab0531
c327f460 stream      0      0        0 c327f3d4        0        0
c327f71c stream      0      0        0 c327f7a8        0        0 /var/tmp/orbit-root/linc-266-0-605e19dab0531
c327f7a8 stream      0      0        0 c327f71c        0        0
c327f834 stream      0      0        0 c327f8c0        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c327f8c0 stream      0      0        0 c327f834        0        0
c327f94c stream      0      0        0 c327f9d8        0        0 /var/tmp/orbit-root/linc-266-0-605e19dab0531
c327f9d8 stream      0      0        0 c327f94c        0        0
c327fa64 stream      0      0 c3301104        0        0        0 /var/tmp/orbit-root/linc-266-0-605e19dab0531
c327faf0 stream      0      0        0 c327fb7c        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c327fb7c stream      0      0        0 c327faf0        0        0
c327fc08 stream      0      0        0 c327fc94        0        0 /tmp/.X11-unix/X0
c327fc94 stream      0      0        0 c327fc08        0        0
c32e9118 stream      0      0        0 c32e91a4        0        0 /var/tmp/orbit-root/linc-25e-0-605f52ccae99
c32e91a4 stream      0      0        0 c32e9118        0        0
c32e9230 stream      0      0        0 c32e92bc        0        0 /var/tmp/orbit-root/linc-264-0-605fd7b0ceb04
c32e92bc stream      0      0        0 c32e9230        0        0
c32268c0 stream      0      0        0 c3226834        0        0 /var/tmp/orbit-root/linc-264-0-605fd7b0ceb04
c3226834 stream      0      0        0 c32268c0        0        0
c32261a4 stream      0      0        0 c3226230        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c3226230 stream      0      0        0 c32261a4        0        0
c32262bc stream      0      0        0 c3226348        0        0 /var/tmp/orbit-root/linc-264-0-605fd7b0ceb04
c3226348 stream      0      0        0 c32262bc        0        0
c32263d4 stream      0      0 c32e4d34        0        0        0 /var/tmp/orbit-root/linc-264-0-605fd7b0ceb04
c3226460 stream      0      0        0 c32264ec        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c32264ec stream      0      0        0 c3226460        0        0
c3226578 stream   1032      0        0 c3226604        0        0 /tmp/.X11-unix/X0
c3226604 stream      0      0        0 c3226578        0        0
c3226690 stream      0      0        0 c32267a8        0        0 /var/tmp/mapping-root
c322671c stream      0      0 c32c0d34        0        0        0 /var/tmp/mapping-root
c32267a8 stream      0      0        0 c3226690        0        0
c322694c stream      0      0        0 c32269d8        0        0 /var/tmp/orbit-root/linc-260-0-605f52cc6d129
c32269d8 stream      0      0        0 c322694c        0        0
c3226a64 stream      0      0        0 c3226af0        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c3226af0 stream      0      0        0 c3226a64        0        0
c3226b7c stream      0      0        0 c3226c08        0        0 /var/tmp/orbit-root/linc-260-0-605f52cc6d129
c3226c08 stream      0      0        0 c3226b7c        0        0
c3226c94 stream      0      0 c328f30c        0        0        0 /var/tmp/orbit-root/linc-260-0-605f52cc6d129
c3226d20 stream      0      0        0 c3226dac        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c3226dac stream      0      0        0 c3226d20        0        0
c3226e38 stream      0      0        0 c3226ec4        0        0 /tmp/.ICE-unix/572
c3226ec4 stream      0      0        0 c3226e38        0        0
c327f000 stream      8      0        0 c327f08c        0        0 /tmp/.X11-unix/X0
c327f08c stream      0      0        0 c327f000        0        0
c327f118 stream      0      0        0 c327f1a4        0        0 /var/tmp/orbit-root/linc-25e-0-605f52ccae99
c327f1a4 stream      0      0        0 c327f118        0        0
c327f230 stream      0      0        0 c327f2bc        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c327f2bc stream      0      0        0 c327f230        0        0
c2ee6348 stream      0      0        0 c2ee62bc        0        0 /var/tmp/orbit-root/linc-25e-0-605f52ccae99
c2ee62bc stream      0      0        0 c2ee6348        0        0
c2ee52bc stream      0      0 c327d618        0        0        0 /var/tmp/orbit-root/linc-25e-0-605f52ccae99
c2ee5604 stream      0      0        0 c2ee6578        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c2ee6578 stream      0      0        0 c2ee5604        0        0
c2ee68c0 stream      0      0        0 c2ee6834        0        0 /tmp/.ICE-unix/572
c2ee6834 stream      0      0        0 c2ee68c0        0        0
c2ee69d8 stream      8      0        0 c2ee694c        0        0 /tmp/.X11-unix/X0
c2ee694c stream      0      0        0 c2ee69d8        0        0
c2ee6af0 stream      0      0        0 c2ee6a64        0        0 /tmp/.ICE-unix/572
c2ee6a64 stream      0      0        0 c2ee6af0        0        0
c2ee6b7c stream      8      0        0 c2ee6118        0        0 /tmp/.X11-unix/X0
c2ee6118 stream      0      0        0 c2ee6b7c        0        0
c2ee64ec stream      0      0        0 c2ee6230        0        0 /var/tmp/orbit-root/linc-25a-0-43161a775ad29
c2ee6230 stream      0      0        0 c2ee64ec        0        0
c2ee61a4 stream      0      0 c3263104        0        0        0 /var/tmp/orbit-root/linc-25a-0-43161a775ad29
c2ee608c stream      0      0        0 c2ee6c08        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c2ee6c08 stream      0      0        0 c2ee608c        0        0
c2ee63d4 stream      0      0        0 c2ee6460        0        0 /var/tmp/orbit-root/linc-245-0-605c8ff268700
c2ee6460 stream      0      0        0 c2ee63d4        0        0
c2ee6604 stream      0      0        0 c2ee6690        0        0 /var/tmp/orbit-root/linc-245-0-605c8ff268700
c2ee6690 stream      0      0        0 c2ee6604        0        0
c2ee671c stream      0      0        0 c2ee67a8        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c2ee67a8 stream      0      0        0 c2ee671c        0        0
c2ee6c94 stream      0      0        0 c2ee6d20        0        0 /var/tmp/orbit-root/linc-245-0-605c8ff268700
c2ee6d20 stream      0      0        0 c2ee6c94        0        0
c2ee6dac stream      0      0 c3220c30        0        0        0 /var/tmp/orbit-root/linc-245-0-605c8ff268700
c2ee6e38 stream      0      0        0 c2ee6ec4        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c2ee6ec4 stream      0      0        0 c2ee6e38        0        0
c3226000 stream      8      0        0 c322608c        0        0 /tmp/.X11-unix/X0
c322608c stream      0      0        0 c3226000        0        0
c3226118 stream      0      0        0 c2ee5000        0        0 /tmp/.ICE-unix/572
c2ee5000 stream      0      0        0 c3226118        0        0
c2ee5e38 stream      0      0        0 c2ee53d4        0        0 /tmp/.X11-unix/X0
c2ee53d4 stream      0      0        0 c2ee5e38        0        0
c2ee5578 stream      0      0        0 c2ee5460        0        0 /var/tmp/orbit-root/linc-23c-0-52ac3d1a3c9a2
c2ee5460 stream      0      0        0 c2ee5578        0        0
c2ee51a4 stream      0      0        0 c2ee54ec        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c2ee54ec stream      0      0        0 c2ee51a4        0        0
c2ee508c stream      0      0 c31dc410        0        0        0 /var/tmp/orbit-root/linc-241-0-2789f3e8d5e6
c2ee5118 stream      0      0 c31c6924        0        0        0 /tmp/.ICE-unix/572
c2ee5c94 stream      0      0        0 c2ee5d20        0        0 /var/tmp/orbit-root/linc-23c-0-52ac3d1a3c9a2
c2ee5d20 stream      0      0        0 c2ee5c94        0        0
c2ee5c08 stream      0      0 c3196e38        0        0        0 /var/tmp/orbit-root/linc-23c-0-52ac3d1a3c9a2
c2ee5a64 stream      0      0        0 c2ee59d8        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c2ee59d8 stream      0      0        0 c2ee5a64        0        0
c2ee594c stream      0      0 c3191a28        0        0        0 /var/tmp/orbit-root/linc-23e-0-4dcb81b21b4f0
c2ee5834 stream      0      0        0 c2ee57a8        0        0 /tmp/.X11-unix/X0
c2ee57a8 stream      0      0        0 c2ee5834        0        0
c2ee5dac stream      0      0        0 c2ee5690        0        0 /tmp/.X11-unix/X0
c2ee5690 stream     32      0        0 c2ee5dac        0        0
c2ee571c stream      0      0 c3140618        0        0        0 /tmp/.X11-unix/X0
c32e97a8 dgram       0      0        0 c2ee6000        0 c2ee58c0
c2ee58c0 dgram       0      0        0 c2ee6000        0 c2ee5ec4
c2ee5ec4 dgram       0      0        0 c2ee6000        0 c2ee5af0
c2ee5af0 dgram       0      0        0 c2ee6000        0 c2ee5b7c
c2ee5b7c dgram       0      0        0 c2ee6000        0        0
c2ee6000 dgram       0      0 c2ee2924        0 c32e97a8        0 /var/run/log      

TOP

看一下偶以前写的dns, 那是在freebsd下配置的, 现在都用openbsd了, 没用freebsd了!      
★ *""*☆*""* ★ FreeBSD & OpenBSD 爱好者 ★ *""*☆*""* ★ FreeBSD版 OpenBSD 系列.....

TOP

host 192.168.10.252反向解析却没有问题!
以前也出现过这样的问题,忘记怎么解决了。      

TOP

请问freeBSD下在哪个具体目录下安装VNC server,如何启动它?

请问freeBSD下在哪个具体目录下安装VNC server,如何启动它?
谢谢指导!      

TOP

发新话题