阅 读 文 章

bind9 config

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(MiniGUI) | 时间:2007-05-27 | 浏览:人次 ]


TITLE: BIND 
LFS VERSION: 3.0-pre4 
AUTHOR: Michenaud Laurent <lmichenaud@free.fr>; 

SYNOPSIS: 
How to set up a simple dns server with bind 

HINT: 
version 1.0beta1 
This hint explains how to set up bind on your lfs. 
I am not a bind specialist, what is written is what i 
have understood. Don\'t hesitate to correct it if you 
see mistakes or have optimizations. 


------------------------------------------------ 
1) Installation of bind 

tar zxvf bind-9.1.3.tar.gz 
cd bind-9.1.3 
./configure 
make 
make install 

cp doc/man/bin/*.1 /usr/man/man1 
cp doc/man/bin/*.5 /usr/man/man5 
cp doc/man/bin/*.8 /usr/man/man8 


The following configuration files are very simple. It allows you to have 
a dns server for your local network and allows you to use the dns 
server of your FAI when you\'re connected to internet. 

On this example, 
network address : 192.168.0.0 
domain name : zerezo.org 
machine host name : zarba 
machine ip : 192.168.0.51 

--------------------------------------------------- 
2) The main configuration file : /etc/named.conf 

;; Begin of file 

; General options 
options { 
auth-nxdomain yes; 
directory \&quot;/var/named\&quot;; 
forward first; 
forwarders { 
212.47.227.206; DNS of your FAI here 
212.47.227.207; 
}; 
}; 

; How to log 
logging { 
channel warning 

file \&quot;/var/log/dns_warnings\&quot; versions 3 size 100k; 
severity warning; 
print-category yes; 
print-severity yes; 
print-time yes; 
}; 
channel general_dns 

file \&quot;/var/log/dns_logs\&quot; versions 3 size 100k; 
severity info; 
print-category yes; 
print-severity yes; 
print-time yes; 
}; 
category default { warning; } ; 
category queries { general_dns; } ; 
}; 
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: quot 回复 file Beginoffile Endoffile zone TTL3D bind9

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.