nakata, pls. about DNS. tks.

nakata, pls. about DNS. tks.

Nakata,

我正在试验我的LINUX,想把它做DNS,然后再做MAIL.

已成功装好LINUX RH7.1, 网卡已起来, SAMBA已设置好.

主机名为:linux.bab.com.cn
ip:192.168.1.18

DNS可以内部使用的话,如果我想把它作为整个单位的DNS SERVER的话,是否需要再加一块网卡和防火墙相连,那样的话是不是需要一个存在的IP,而不是内部IP.或者要装NAT.

请指教!

nslookup
note:nslookup is a deprecated and maybe removed from feture released,consider using the 'dig' or 'host'..........
>
然后我输入www.bab.com.cn后出现
;; connection timed out; no servers could be reached 输入192.168.1.18后出现
;; connection timed out; no servers could be reached

出错在什么地方?是反向解析出错??

log中not at top of zone是什么意思?
===========
Aug 22 08:56:18 linux named[595]: dns_zone_load: zone linux.bab.com.cn/IN: load
ing master file db.linux.bab.com.cn: not at top of zone
Aug 22 08:56:18 linux named[595]: running
Aug 22 10:29:02 linux named[595]: shutting down
Aug 22 10:29:02 linux named[595]: no longer listening on 127.0.0.1#53
Aug 22 10:29:02 linux named[595]: no longer listening on 192.168.1.18#53
Aug 22 10:29:02 linux named[590]: exiting
Aug 22 10:29:03 linux named: named shutdown succeeded
Aug 22 10:30:30 linux named: named startup succeeded
Aug 22 10:30:30 linux named[590]: starting BIND 9.1.0 -u named
Aug 22 10:30:30 linux named[590]: using 1 CPU
Aug 22 10:30:31 linux named[595]: loading configuration from '/etc/named.conf'
Aug 22 10:30:31 linux named[595]: the default for the 'auth-nxdomain' option is
now 'no'
Aug 22 10:30:31 linux named[595]: no IPv6 interfaces found
Aug 22 10:30:31 linux named[595]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 22 10:30:31 linux named[595]: listening on IPv4 interface eth0, 192.168.1.18
#53
Aug 22 10:30:31 linux named[595]: dns_master_load: db.linux.bab.com.cn:9: not a
t top of zone
Aug 22 10:30:31 linux named[595]: dns_zone_load: zone linux.bab.com.cn/IN: load
ing master file db.bab.com.cn: not at top of zone
Aug 22 10:30:31 linux named[595]: running

============
db.192.168.1
===========
$TTL 86400
@ IN SOA linux.bab.com.cn. root.linux.bab.com.cn. (
2001082201 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS linux.bab.com.cn.
;
; SERVER SECTION
;
1 IN PTR linux.bab.com.cn.
10 IN PTR mail.bab.com.cn.

=================
db.linux.bab.com.cn
=================
$TTL 86400
@IN SOA linux.bab.com.cn. root.linux.bab.com.cn. (
2001082101 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS linux.bab.com.cn.
@ IN MX 10 mail.bab.com.cn.
linux IN A 192.168.1.18
localhost IN A 127.0.0.1
mail CNAME mail.bab.com.cn.


      
再有二个问题想请教!

1.这个又是什么意思?

dns_rdata_fromtext:
named.195.11.238:10: near 'NS': extra input text

下面有好几个.

===================
Jul 18 23:42:58 mail /usr/local/named/sbin/named[1796]: dns_rdata_fromtext:
named.127.0.0:10: near 'NS': extra input text
Jul 18 23:42:58 mail /usr/local/named/sbin/named[1796]: dns_zone_load: zone
0.0.127.in-addr.arpa/IN: loading master file named.127.0.0: extra input text
Jul 18 23:42:58 mail /usr/local/named/sbin/named[1796]: dns_rdata_fromtext:
named.195.11.238:10: near 'NS': extra input text
Jul 18 23:42:58 mail /usr/local/named/sbin/named[1796]: dns_zone_load: zone
238.11.195.in-addr.arpa/IN: loading master file named.195.11.238: extra
input text


第二个我想建立一个组,然后把一些用户放入那些组里,这样的话只要把组的权限设好就可以了,并且容易管理.怎么可以实现?

谢谢      
有点没看懂,呵呵,你的DNS是局域网内部的,想和Internet连接还是和其他局域网想连,还是别的什么?
看你的帖子,好象是连上Internet,错误信息是说没有相应的DNS,局域网的DNS在Internet上是不行的。

第二个问题,很好做啊,直接用userconf建立用户和组就可以了啊。      
我是想先建在局域网内部,等到NSLOOKUP成功后,也就是代表DNS设置好了,再和INTERNET相连.

      
局域网内部的DNS是不能用到Internet上的。Internet上的域名怎么可能让我们用户随便加呢?呵呵。      
当然,我这样做只是为了研究DNS,安装DNS.等到安装好了.自然要把真实IP放上去.

谢谢!      
哦,好幸福啊,我还只是局限在局域网里,还没有机会让我的主机走进internet......