配置DNS辅助域名服务器和子域名服务器

作者:佚名 来源:ddvip.com 时间:2009-02-10 15:46:00 

一、规划说明:

主机A: 双网卡

192.168.1.7 --> mydomain.org主域名服务器

192.168.10.7 --> myzone.org主域名服务器,其有两个子域,为market.myzone.org和develog.myzone.org

主机B:双网卡

192.168.1.6 --> mydomain.org辅助域名服务器

192.168.10.6 --> market.myzone.org子域名服务器

两台服务器均有DNS独立的日志,用以记录查询(query_logs)记录和错误(err_logs)记录,以便于DNS后期管理;本文不过多涉及安全方面的问题。安装过程请参照另一篇文章“Bind 9.4.0rc2安装笔记(一步步学习配置简易DNS)”。

二、主机A:

1. 主配置文件/etc/named.conf

options {

directory "/var/named/";

version "0.0.0";

};

logging {

channel dns_errors

{ file "/var/log/named/err_logs" versions 3 size 10m;

severity error;

print-category yes;

print-severity yes;

print-time yes;

};

channel dns_queries

{ file "/var/log/named/query_logs" versions 3 size 10m;

severity info;

print-category yes;

print-severity yes;

print-time yes;

};

category default { dns_errors; };

category queries { dns_queries; };

};

zone "." {

type hint;

file "named.ca";

};

zone "localhost" {

type master;

file "named.local";

};

zone "0.0.127.IN-addr.arpa" {

type master;

file "named.rev";

};

zone "mydomain.org" {

type master;

file "mydomain.org.zone";

allow-transfer { 192.168.1.6/32; };

};

zone "myzone.org" {

type master;

file "myzone.org.zone";

allow-transfer { 192.168.10.0/24; };

};

zone "10.168.192.in-addr.arpa" {

type master;

file "192.168.10.zone";

allow-transfer { 192.168.10.0/24; };

};

zone "1.168.192.in-addr.arpa" {

type master;

file "192.168.1.zone";

allow-transfer { 192.168.1.6/32; };

};

key "rndc-key" {

algorithm hmac-md5;

secret "oKLRLl8BolNj883OX1YcxQ==";

};

controls {

inet 127.0.0.1 port 953

allow { 127.0.0.1; } keys { "rndc-key"; };

};

# End of named.conf

标签:配置,DNS辅助域名,服务器,子域名
0
投稿

猜你喜欢

  • 快速打造下雨动态图片 掀非主流伤感风

    2009-11-23 14:23:00
  • 释疑:谷歌到底是如何对待搜索引擎优化的

    2009-01-06 11:21:00
  • 安全:不让建用户而防止木马

    2009-10-11 12:05:00
  • 个人新站收入上不来的诸多选择

    2007-10-11 17:56:00
  • 博客的未来是什么?—单人博客还是多人博客之争

    2009-05-13 12:51:00
  • 钓鱼网站手机短信诈骗猖獗用户需加强防范意识

    2009-10-27 15:10:00
  • 在Firefox下自定义个性化Autoscroll图标

    2008-01-04 11:44:00
  • 微软免费杀毒软件MSE 1.0.1611.0 正式发布

    2009-09-30 06:58:00
  • 简单解析Linux系统防火墙框架

    2009-07-12 09:26:00
  • 入门:web服务器和应用服务器的区别

    2009-07-23 15:40:00
  • Windows系统中常用密码的破解方法

    2009-01-23 15:22:00
  • 做站还是本分点好 简单的东西才最真实

    2008-06-13 12:29:00
  • 用Windows2008 Server防火墙 确保系统安全

    2009-10-14 14:46:00
  • 在那里修改godaddy的首页默认访问文件?

    2010-04-16 12:56:00
  • 警惕:几种赚不了钱的网络赚钱方法

    2009-02-04 13:00:00
  • Webmail攻防实战(6)

    2007-11-01 14:09:00
  • Windows Server 2008被忽视的十大功能

    2010-08-26 18:30:00
  • 妙手回春,化解服务器登录难题(1)

    2007-03-27 10:19:00
  • 世界四大网页之最

    2008-01-13 18:39:00
  • ProFtpd快速指南(六)

    2007-09-27 13:42:00
  • asp之家 网站运营 m.aspxhome.com