Ubuntu配置Bind9
来源:互联网 发布:大数据 培训 编辑:程序博客网 时间:2024/05/17 23:55
安装Bind9
aptitude install bind9 bind9-host dnsutils
配置文件
/etc/bind/named.conf
/etc/bind/named.conf.options
/etc/bind/named.conf.default-zones
view设置样例
ACL dx {59.77.2.237;92.168.190.129;192.168.190.133;192.168.190.151;192.168.190.128;192.168.52.130;192.168.223.130;119.29.108.135;};ACL wt{192.168.190.130;192.168.190.120;192.168.190.150;115.28.177.243;};view "dx" { match-clients { dx; }; recursion no; zone "xujc.com" IN { type master; file "xujc.com.zone.dx"; allow-update { none ; }; }; zone "abc.com" IN { type master; file "abc.com.zone.dx"; allow-update { none ; }; };};view "wt" { match-clients { wt; }; recursion no; zone "xujc.com" IN { type master; file "xujc.com.zone.wt"; allow-update { none ; }; }; zone "abc.com" IN { type master; file "abc.com.zone.wt"; allow-update { none ; }; };};view "other" { match-clients { any; }; recursion no; zone "xujc.com" IN { type master; file "xujc.com.zone.other"; allow-update { none ; }; }; zone "abc.com" IN { type master; file "abc.com.zone.other"; allow-update { none ; }; };};
options: directory “/var/cache/bind”; 设定zone目录
abc.com.zone样例:
$TTL 60$ORIGIN abc.com.@ IN SOA ns.abc.com. admin.abc.com.(20090218;28800;15M;1W;1D)@ IN NS ns.abc.com.ns IN A 192.168.52.130www IN A 192.168.1.1mail IN A 192.168.5.33
重启服务 rndc reload 或者 service named restart
1 0
- Ubuntu配置Bind9
- Ubuntu Bind9泛域名解析配置
- Ubuntu采用bind9配置DNS服务器
- Ubuntu下DNS服务器的配置——Bind9
- ubuntu下配置bind9为局域网的DNS服务器
- ubuntu下安装bind9
- [DNS] BIND9详解 BIND9配置方法
- BIND9的配置(1)
- BIND9安装配置 手记
- BIND9配置详解
- DNS Bind9 配置小记
- DNS bind9配置
- bind9配置实例初探
- bind9配置说明
- BIND9.9.9配置DNS
- bind9 ubuntu启动和关闭
- Hadoop 通过bind9配置DNS服务器替代hosts的IP映射(ubuntu版)
- BIND9 的安装与配置
- IOS开发ARC forbids explicit message send of 'autorelease'错误解决办法
- 用C++实现在键盘上输入任意个数
- Redis 学习 ---- 9.数据库
- Visual Studio 2010配置Opencv2.4.9
- 第四周实践项目1————求最大公约数
- Ubuntu配置Bind9
- 【iOS】原生微信登录和分享
- 递归函数
- Java用freemarker导出word
- 第五回,谈中国式产品创新
- J2EE --- Servlet 生命周期与工作原理
- 【打杂】苹果市场的评论搜集
- Nginx + https + 免费SSL证书配置指南
- Android官方开发文档Training系列课程中文版:添加ActionBar之添加Action按钮