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) |