快速业务通道

Linux4.0 DNS SERVER relevant config

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-01

1.[root@michael ~]# rpm -qa | grep bind

bind-chroot-9.2.4-16.EL4

bind-libs-9.2.4-16.EL4

bind-9.2.4-16.EL4

ypbind-1.17.2-8

bind-utils-9.2.4-16.EL4

2.[root@michael ~]# rpm -e bind-chroot

[root@michael ~]# rpm -qa | grep bind

bind-libs-9.2.4-16.EL4

bind-9.2.4-16.EL4

ypbind-1.17.2-8

bind-utils-9.2.4-16.EL4

3.[root@michael ~]# cat /etc/named.conf

//

// named.conf for Red Hat caching-nameserver

//

options {

directory "/var/named"; (domain name file save the lord directory”)

dump-file "/var/named/data/cache_dump.db"; (缓存file save the lord directory”)

statistics-file "/var/named/data/named_stats.txt";

/*

* 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 "localdomain" IN {

type master;

file "localdomain.zone";

allow-update { none; };

};

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 "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" IN {

type master;

file "named.ip6.local";

allow-update { none; };

};

zone "255.in-addr.arpa" IN {

type master;

file "named.broadcast";

allow-update { none; };

};

zone "0.in-addr.arpa" IN {

type master;

file "named.zero";

allow-update { none; };

};

include "/etc/rndc.key";

4. [root@michael ~]# service named restart

Stopping named: [ OK ]

Starting named: [ OK ]

[root@michael ~]# chkconfig --list named

named 0:off 1:off 2:off 3:off 4:off 5:off 6:off

[root@michael ~]# chkconfig --level 35 named on

[root@michael ~]# chkconfig --level 35 named on

[root@michael ~]# chkconfig --list named

named 0:off 1:off 2:off 3:on 4:off 5:on 6:off

5. [root@michael RPMS]# rpm -ivh caching-nameserver-7.3-3.noarch.rpm --force

warning: caching-nameserver-7.3-3.noarch.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Preparing... ########################################### [100%]

1:caching-nameserver ########################################### [100%]

注意caching-nameserver 软件包是对named.conf 的内容进行更改,此软件包是用来配置缓存域名SERVER.

6.[root@michael ~]# grep -v ''^;'' /var/named/named.ca

. 3600000 IN NS A.ROOT-SERVERS.NET.

A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4

. 3600000 NS B.ROOT-SERVERS.NET.

B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201

. 3600000 NS C.ROOT-SERVERS.NET.

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号