LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 502|回复: 1

帮我看看,头痛好久了.....

[复制链接]
发表于 2006-4-10 10:45:48 | 显示全部楼层 |阅读模式
##################### named.conf #############
// generated by named-bootconf.pl

options   {
        directory "/var/named";
        // *
        // * 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;
};

//
// a caching only nameserver config
//
controls  {
        inet 127.0.0.1  allow { localhost; };
      //  keys { rndckey; };
};

zone "."  IN  {
        type hint;
        file "named.ca";
};

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 "lc.com" IN {
       type master;
       file "lc.com";
      // allow-transfer { 192.168.0.1;};
      // allow-update {none;};
};

zone "0.168.192.in-addr.arpa" IN {
        type master;
        file "lc.com.rev";
     //   allow-update {none;};
};
include "/etc/rndc.key";

######################## lc.com ##############
$TTL 86400
@   IN   SOA  psw.lc.com. root.psw.lc.com. (
      2003070401 1H 1M 1W 1D )
    IN    NS  psw.lc.com.
    IN    A   192.168.0.1
psw  IN  A   192.168.0.1
www   IN   A  192.168.0.1
ftp   IN   A  192.168.0.1
www1  IN  CNAME  psw.lc.com.
ftp1  IN  CNAME  psw.lc.com.
@    IN  MX  10   psw.lc.com.
psw.lc.com  IN  MX 10  psw.lc.com.

#######################  lc.com.rev ##########
bash-2.05b# cat lc.com.rev
$TTL 86400
@     IN   SOA  psw.lc.com.  root.psw.lc.com.  (
      2003070401 1H 1M 1W 1D )
IN    NS  192.168.0.1
IN    NS   psw.lc.com.
1.0.168.192.in-addr.arpa  IN  PTR  psw.lc.com.

------------------------------------------------

bash-2.05b# named -gc /etc/named.conf
09-Apr-2006 09:53:49.991 starting BIND 9.3.2 -gc /etc/named.conf
09-Apr-2006 09:53:50.011 loading configuration from '/etc/named.conf'
09-Apr-2006 09:53:50.128 no IPv6 interfaces found
09-Apr-2006 09:53:50.128 listening on IPv4 interface lo, 127.0.0.1#53
09-Apr-2006 09:53:50.128 binding TCP socket: address in use
09-Apr-2006 09:53:50.128 listening on IPv4 interface eth0, 192.168.0.1#53
09-Apr-2006 09:53:50.128 binding TCP socket: address in use
09-Apr-2006 09:53:50.128 listening on IPv4 interface eth0:1, 192.168.0.2#53
09-Apr-2006 09:53:50.129 binding TCP socket: address in use
09-Apr-2006 09:53:50.170 /etc/named.conf:19: couldn't add command channel 127.0.
0.1#953: address in use
09-Apr-2006 09:53:50.170 ignoring config file logging statement due to -g option
09-Apr-2006 09:53:50.178 zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
09-Apr-2006 09:53:50.184 zone 0.168.192.in-addr.arpa/IN: has no NS records
09-Apr-2006 09:53:50.190 lc.com:6: unknown RR type 'psw'
09-Apr-2006 09:53:50.195 zone lc.com/IN: loading master file lc.com: unknown cla
ss/type
09-Apr-2006 09:53:50.197 zone localhost/IN: loaded serial 42
09-Apr-2006 09:53:50.202 running

------------------------------------
bash-2.05b# dig lc.com

; <<>> DiG 9.3.2 <<>> lc.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 51360
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;lc.com.                                IN      A

;; Query time: 1 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sun Apr  9 09:58:15 2006
;; MSG SIZE  rcvd: 24

bash-2.05b# dig www.lc.com

; <<>> DiG 9.3.2 <<>> www.lc.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 8573
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.lc.com.                    IN      A

;; Query time: 77 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Sun Apr  9 09:58:55 2006
;; MSG SIZE  rcvd: 28

bash-2.05b# ping lc.com
PING lc.com (192.168.0.1) 56(84) bytes of data.
64 bytes from lc.com (192.168.0.1): icmp_seq=0 ttl=64 time=0.048 ms
64 bytes from lc.com (192.168.0.1): icmp_seq=1 ttl=64 time=0.059 ms
64 bytes from lc.com (192.168.0.1): icmp_seq=2 ttl=64 time=0.087 ms
64 bytes from lc.com (192.168.0.1): icmp_seq=3 ttl=64 time=0.055 ms
64 bytes from lc.com (192.168.0.1): icmp_seq=4 ttl=64 time=0.055 ms

--- lc.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4009ms
rtt min/avg/max/mdev = 0.048/0.060/0.087/0.016 ms, pipe 2

bash-2.05b# hostname
psw

bash-2.05b# ping www.lc.com
ping: unknown host www.lc.com

09-Apr-2006 09:55:33.597 client 192.168.0.1#32793: query: fxfeeds.mozilla.com IN
A +
09-Apr-2006 09:55:38.607 client 192.168.0.1#32793: query: fxfeeds.mozilla.com IN
A +
09-Apr-2006 09:55:43.617 client 192.168.0.1#32793: query: fxfeeds.mozilla.com IN
A +
09-Apr-2006 09:55:48.577 client 192.168.0.1#32793: query: fxfeeds.mozilla.com IN
A +
09-Apr-2006 09:55:53.586 client 192.168.0.1#32793: query: fxfeeds.mozilla.com IN
A +
09-Apr-2006 09:58:15.231 client 192.168.0.1#32793: query: lc.com IN A +
09-Apr-2006 09:58:55.220 client 192.168.0.1#32793: query: www.lc.com IN A +
09-Apr-2006 10:00:11.156 client 192.168.0.1#32793: query: psw.lc.com IN A +
09-Apr-2006 10:00:11.206 client 192.168.0.1#32793: query: psw.lc.com IN A +
09-Apr-2006 10:00:11.226 client 192.168.0.1#32793: query: psw.lc.com IN A +
09-Apr-2006 10:00:11.236 client 192.168.0.1#32793: query: psw.lc.com IN A +
09-Apr-2006 10:00:21.370 client 192.168.0.1#32793: query: www.lc.com IN A +
09-Apr-2006 10:00:21.416 client 192.168.0.1#32793: query: www.lc.com IN A +
09-Apr-2006 10:00:21.441 client 192.168.0.1#32793: query: www.lc.com IN A +
09-Apr-2006 10:00:21.456 client 192.168.0.1#32793: query: www.lc.com IN A +
发表于 2006-4-10 18:18:52 | 显示全部楼层
NS
不是
IN NS
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表