Chinaunix首页 | 论坛 | 博客
  • 博客访问: 799447
  • 博文数量: 102
  • 博客积分: 10011
  • 博客等级: 上将
  • 技术积分: 2301
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-08 13:00
文章存档

2011年(2)

2010年(30)

2009年(25)

2008年(45)

我的朋友

分类: LINUX

2010-06-23 14:59:09

DNS is short for Domain Name System, but it is important for the Internet-user, It can interchange with the domain and IP.
1  DNS servers 
DNS servers is a client/servers mode , it used for tell the domain and ip , such as :  and it's ip is 202.108.0.3
2 Domain Configure File
2.1 named.conf
2.2 named.rev
2.3 named.local
2.4 named.ca
2.5 named.host
3 named.conf configuration 
mount /media/cdrom
cd /media/cdrom/CentOS/RPM
rpm -ivh bind-*
vi /etc/named.conf
这是基本的信息
options {
directory "/var/named";
multiple-cnames yes;
pid-file "/etc/named.pid";
forwards {8.8.8.8;202.106.0.20};
allow-query {any;};
allow-transfer {none;};
};

zone "." IN {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" IN {

type master;
file "named.local";

};

zone "ccie.cn" IN {
type master;
file "ccie.cn";

};

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

type master;
file "ccie.cn.192.2.2";

};
定义ccie.cn
vi ccie.cn
$ TTL 86400
$ORIGN ccie.cn.
@            IN          SOA  ccie.cn.  root.ccie.cn.
{
42;
3H;
15M;
1W;
1D;
};
             IN           NS @
             IN           MX 10  mail.ccie.cn.
@            IN           A  192.168.4.100
www          IN           A  192.168.4.101

定义ccie.cn.192.168.2
$ TTL 86400
$ORIGN ccie.cn.
@            IN          SOA  ccie.cn.  root.ccie.cn.
{
42;
3H;
15M;
1W;
1D;
};
             IN           NS @
             IN           MX 10  mail.ccie.cn.
47           IN           PTR    
48           IN           PTR    ftp.ccie.cn


阅读(626) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~