RedHat Linux AS 5.3 下DNS的配置步骤(3)

 

 

首页服务器应用

背景:

阅读新闻

RedHat Linux AS 5.3 下DNS的配置步骤

[日期:2013-11-27]   来源:CSDN  作者:guoyjoe   [字体:]  

三、配置DNS

1、 安装caching-nameserver

[root@mydb~]# yum install caching-nameserver

Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package caching-nameserver.x86_64 30:9.3.4-10.P1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================
 Package                            Arch                  Version                            Repository            Size
==========================================================================================================================
Installing:
 caching-nameserver                x86_64                30:9.3.4-10.P1.el5                  base                  58 k

Transaction Summary
==========================================================================================================================
Install      1 Package(s)       
Update      0 Package(s)       
Remove      0 Package(s)       

Total download size: 58 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing    : caching-nameserver                                [1/1]

Installed: caching-nameserver.x86_64 30:9.3.4-10.P1.el5
Complete!

2、 安装完成会在/etc/下生成named.caching-nameserver.conf,查看其内容如下:

[root@mydb~]# cat /etc/named.caching-nameserver.conf

//
// 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 { 127.0.0.1; };
        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";

// Those options should be used carefully because they disable port
        // randomization
        // query-source    port 53;
        // query-source-v6 port 53;

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

linux

 

Ubuntu使用教程-更改Samba工作组和计算机名

CentOS6编译安装Nginx

相关资讯       RedHat DNS配置  RedHat 5.3 

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/b381f4825b163e69358b2b2b6fb67d62.html