- 论坛徽章:
- 0
|
文档名称:Linux服务配置文档—NFS
服务器配置:192.168.0.8 redhat- 2.6.9-5.EL 192.168.0.6 redhat- 2.6.18-8.el5
文档地址: http://blog.chinaunix.net/u1/40306/
http://www.icann.org/ 顶级域名的管理组织
http://www.isc.org/ BIND 软件官方网站
http://www.isc.org/ml-archives/ BIND 的邮件列表,有很多问题可以在列表中找到你要的答案
http://www.internic.net/ Internet 域名注册
http://www.internic.net/regist.html 世界各地区的注册代理商数据
http://www.internic.net/whois.html 域名信息 whois 数据查询,国家后缀除外
http://www.allwhois.com/ 注册代理商、whois 数据查询
http://www.cnnic.cn/ .cn 后缀的域名服务,需要注册 .cn 后缀可以从这里开始
http://www.apnic.net/index.html 亚太地区网络 IP 注册查询服务
http://www.ripe.net/ 欧洲、中东、非洲等地区网络 IP 注册查询服务
http://www.arin.net/ 南美地区网络 IP 注册查询服务
http://www.dnsstuff.com/ dns online tools 可以查询很多有用数据,特别是反垃圾邮件的信息
http://www.dnsreport.com/ 可以对你的域名进行全面的测试,并提供完成的报告哦
开始配置文件:
加入以下黑体字的内容
vi /etc/named.conf
/
// named.conf for Red Hat caching-nameserver
//
options {
fetch-glue no;
recursion no;
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
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; };
};
zone "wds.com.cn" IN {
type master;
file "wds.com.cn";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.in-addr.arpa";
allow-update { none; };
};
include "/etc/rndc.key";
加入反向域
vi /var/named/chroot/var/named/0.168.192.in-addr.arpa
$TTL 86400
@ IN SOA wds.com.cn. hostmaster.wds.cn. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.doit.com.cn.
8.0.168.192.in-addr.arpa. IN PTR mail.wds.com.cn.
8.0.168.192.in-addr.arpa. IN PTR ftp.wds.com.cn.
8.0.168.192.in-addr.arpa. IN PTR www.wds.com.cn.
2.10.10.10.in-addr.arpa. IN PTR ssh.wds.com.cn.
Vi /var/named/chroot/var/named/wds.com.cn
$TTL 86400
@ IN SOA wds.com.cn hostmaster.wds.com.cn (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns1.wds.com.cn.
IN MX 10 mail.wds.com.cn.
mail IN A 192.168.0.8
ftp IN A 192.168.0.8
ssh IN A 10.10.10.2
www IN A 192.168.0.8
echo “nameserver 192.168.0.8” >>/etc/resolve.comf |
|