标题: redhat Enterprise 5.0 DNS 配置问题 (查看:1251 回复:12)
yjypm530
学徒网管




UID 603169
精华 0
积分 3
帖子 58
MST币 19 点    
BST币 3 点    赚取
阅读权限 60
注册 2007-10-26
状态 离线
 
[ 使用道具 ]  
发表于 2007-12-29 11:06  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
redhat Enterprise 5.0 DNS 配置问题
本帖发表在我是网管论坛,帖子地址:http://bbs.54master.com/223196,1,1
请问各位大侠,配置DNS的时候跟Enterprise 4 的named.conf的文件不一样啊
      [root@localhost ~]# more /var/named/chroot/etc/named.conf
//
// Sample named.conf BIND DNS server 'named' configuration file
// for the Red Hat BIND distribution.
//
// See the BIND Administrator's Reference Manual (ARM) for details, in:
//   [url=file:///usr/share/doc/bind-*/arm/Bv9ARM.html]file:///usr/share/doc/bind-*/arm/Bv9ARM.html[/url]
// Also see the BIND Configuration GUI : /usr/bin/system-config-bind and
// its manual.
//
options
{
        /* make named use port 53 for the source of all queries, to allow
         * firewalls to block all ports except 53:
         */
        query-source    port 53;
        query-source-v6 port 53;
        // Put files that named is allowed to write in the data/ directory:
        directory "/var/named"; // the default
        dump-file               "data/cache_dump.db";
        statistics-file         "data/named_stats.txt";
        memstatistics-file      "data/named_mem_stats.txt";
};
logging
{
/*      If you want to enable debugging, eg. using the 'rndc trace' command,
*      named will try to write the 'named.run' file in the $directory (/var/named).
*      By default, SELinux policy does not allow named to modify the /var/named directory,
*      so put the default debug log file in data/ :
*/
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
//
// All BIND 9 zones are in a "view", which allow different zones to be served
// to different types of client addresses, and for options to be set for groups
// of zones.
//
// By default, if named.conf contains no "view" clauses, all zones are in the
// "default" view, which matches all clients.
//
// If named.conf contains any "view" clause, then all zones MUST be in a view;
// so it is recommended to start off using views to avoid having to restructure
// your configuration files in the future.
//
view "localhost_resolver"
{
/* This view sets up named to be a localhost resolver ( caching only nameserver ).
* If all you want is a caching-only nameserver, then you need only define this view:
*/
        match-clients           { localhost; };
        match-destinations      { localhost; };
        recursion yes;
        # all views must contain the root hints zone:
        include "/etc/named.root.hints";
        /* these are zones that contain definitions for all the localhost
         * names and addresses, as recommended in RFC1912 - these names should
         * ONLY be served to localhost clients:
         */
        include "/etc/named.rfc1912.zones";
};
view "internal"
{
/* This view will contain zones you want to serve only to "internal" clients
   that connect via your directly attached LAN interfaces - "localnets" .
*/
        match-clients           { localnets; };
        match-destinations      { localnets; };
        recursion yes;
        // all views must contain the root hints zone:
        include "/etc/named.root.hints";
        // include "named.rfc1912.zones";
        // you should not serve your rfc1912 names to non-localhost clients.

        // These are your "authoritative" internal zones, and would probably
        // also be included in the "localhost_resolver" view above :
        zone "my.internal.zone" {
                type master;
                file "my.internal.zone.db";
        };
这里是我自己加的:
       zone "liu.com" {
                type master;
                file "liu.com";
        };
      zone "liu.com" {
                type master;
                file "liu.rev";
        };
        zone "my.slave.internal.zone" {
                type slave;
                file "slaves/my.slave.internal.zone.db";
                masters { /* put master nameserver IPs here */ 127.0.0.1; } ;
                // put slave zones in the slaves/ directory so named can update them
        };
        zone "my.ddns.internal.zone" {
                type master;
                allow-update { key ddns_key; };
                file "slaves/my.ddns.internal.zone.db";
                // put dynamically updateable zones in the slaves/ directory so named can update the
m
        };
};
key ddns_key
{
        algorithm hmac-md5;
        secret "use /usr/sbin/dns-keygen to generate TSIG keys";
};
view    "external"
{
/* This view will contain zones you want to serve only to "external" clients
* that have addresses that are not on your directly attached LAN interface subnets:
*/
        match-clients           { !localnets; !localhost; };
        match-destinations      { !localnets; !localhost; };
        recursion no;
        // you'd probably want to deny recursion to external clients, so you don't
        // end up providing free DNS service to all takers
        // all views must contain the root hints zone:
        include "/etc/named.root.hints";
        // These are your "authoritative" external zones, and would probably
        // contain entries for just your web and mail servers:
        zone "my.external.zone" {
                type master;
                file "my.external.zone.db";
        };
};
请问是不是这样改啊.本人外语不好.有些看不懂啊
请各各位指点一二.

[ 点这里复制网址,推荐给你QQ/MSN上的好友们! ]
本站声明:以上内容由网友 yjypm530 提供,与54master立场无关!
《我是网管》论坛
人不在乎什么,只要快乐才好!
知识无穷,应慢慢细读.
[ 顶部 ]
WIzhuTing
学徒网管




UID 636963
精华 0
积分 5
帖子 1
MST币 17 点    
BST币 5 点    赚取
阅读权限 60
注册 2007-12-29
状态 离线
 
[ 使用道具 ]  
发表于 2007-12-29 11:27  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
这和外语没有关系的...

本站声明:以上内容由网友 WIzhuTing 提供,与54master立场无关!
[ 顶部 ]
yjypm530
学徒网管




UID 603169
精华 0
积分 3
帖子 58
MST币 19 点    
BST币 3 点    赚取
阅读权限 60
注册 2007-10-26
状态 离线
 
[ 使用道具 ]  
发表于 2007-12-29 12:38  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
回复 #2 WIzhuTing 的帖子
对说的也是啊.

那说一说你的看法.
请问你配置过吗?

本站声明:以上内容由网友 yjypm530 提供,与54master立场无关!
《我是网管》论坛
人不在乎什么,只要快乐才好!
知识无穷,应慢慢细读.
[ 顶部 ]
Royaum
学徒网管




UID 406202
精华 0
积分 7
帖子 1273
MST币 1 点    
BST币 7 点    赚取
阅读权限 60
注册 2006-7-4
状态 离线
 
[ 使用道具 ]  
发表于 2007-12-31 13:36  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
请问你的redhat Enterprise 5.0是在那里下的。。
我找了很久了。。帮帮我。。谢谢

本站声明:以上内容由网友 Royaum 提供,与54master立场无关!
[ 顶部 ]
mofajiazu
学徒网管



UID 122719
精华 0
积分 45
帖子 324
MST币 2272 点    
BST币 45 点    赚取
阅读权限 60
注册 2006-2-22
状态 离线
 
[ 使用道具 ]  
发表于 2008-1-1 13:15  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
回搂主的你把DNS全部配置完成,测试一下就知道了,我觉得没有错误

redhat AS5.0下载地址:http://mofajiazu.blog.54master.com
那是我的博客,上面有,下载那个FTP地址的

本站声明:以上内容由网友 mofajiazu 提供,与54master立场无关!
《我是网管》论坛
墨子曰:“ 兼相爱,天下治,交相利,天下富。”“言必信,行必果,志不强,智不达 。”“君子慎听慎言”
[ 顶部 ]
死了的枫叶
学徒网管




UID 613623
精华 0
积分 4
帖子 70
MST币 -3 点    
BST币 4 点    赚取
阅读权限 60
注册 2007-11-15
状态 离线
 
[ 使用道具 ]  
发表于 2008-1-3 11:43  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
加油
你配的是对的但你要记得那个是正向那个是反向的啊
配置别的文件是要记得啊,其余的测试一下

本站声明:以上内容由网友 死了的枫叶 提供,与54master立场无关!
[ 顶部 ]
yjypm530
学徒网管




UID 603169
精华 0
积分 3
帖子 58
MST币 19 点    
BST币 3 点    赚取
阅读权限 60
注册 2007-10-26
状态 离线
 
[ 使用道具 ]  
发表于 2008-1-3 12:50  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
那我再去试一试吧

   是解析不出来啊.

本站声明:以上内容由网友 yjypm530 提供,与54master立场无关!
《我是网管》论坛
人不在乎什么,只要快乐才好!
知识无穷,应慢慢细读.
[ 顶部 ]
senenjowen
学徒网管



UID 617860
精华 0
积分 5
帖子 84
MST币 0 点    
BST币 5 点    赚取
阅读权限 60
注册 2007-11-23
状态 离线
 
[ 使用道具 ]  
发表于 2008-1-9 02:05  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友QQ
这个配置文件是跟我学的不一样啊
以后得好好学学啊
我不知道 ,给你说点我的想法吧  
根据你以前学的那样,不是DNS啊  ,
而是FTP WWW这些  它是不是有连接了什么 文件 象你以前学的
在/var/named/ 文件下的两个文件就不说了
你想下 那个named.conf文件会不会是在什么文件目录下要配置呢
就想在以前你学的/etc/named.conf  
说不定她就是连接了个文件 而配置和以前的一样,、
我想不会有太大的区别的
呵呵!

本站声明:以上内容由网友 senenjowen 提供,与54master立场无关!
《我是网管》论坛
吸烟者自魂也,望同胞们戒之!
[ 顶部 ]
love-life
衰哥霉女




UID 581622
精华 0
积分 -1
帖子 81
MST币 76 点    
BST币 -1 点    赚取
阅读权限 0
注册 2007-9-12
状态 离线
 
[ 使用道具 ]  
发表于 2008-1-9 13:27  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友添加 love-life 为MSN好友 通过MSN和 love-life 交谈
有没有配置过啊

本站声明:以上内容由网友 love-life 提供,与54master立场无关!
[ 顶部 ]
yjypm530
学徒网管




UID 603169
精华 0
积分 3
帖子 58
MST币 19 点    
BST币 3 点    赚取
阅读权限 60
注册 2007-10-26
状态 离线
 
[ 使用道具 ]  
发表于 2008-1-10 10:11  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
回复 #8 senenjowen 的帖子
你有没有配置过啊.
我看了一下,是有一些联系,多了几个文件啊.如:named.conf
named.rfc1912.zones
named.root.hints  
rndc.conf
这些是配置正反向区域可选的文件:        
my.external.zone.db  named.ip6.local  named.zero
localdomain.zone  my.internal.zone.db  named.local      slaves
localhost.zone    named.broadcast      named.root

本站声明:以上内容由网友 yjypm530 提供,与54master立场无关!
《我是网管》论坛
人不在乎什么,只要快乐才好!
知识无穷,应慢慢细读.
[ 顶部 ]
  
 



当前时区 GMT+8, 现在时间是 2008-8-22 13:09

Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.048211 second(s), 12 queries , Gzip enabled

清除 Cookies - 关于我是网管 - 联系我是网管 - 广告服务 - 诚聘版主 - 无图版 - WAP -