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 \"/var/named\";
forward first;
forwarders {
212.47.227.206; DNS of your FAI here
212.47.227.207;
};
};
; How to log
logging {
channel warning
{
file \"/var/log/dns_warnings\" versions 3 size 100k;
severity warning;
print-category yes;
print-severity yes;
print-time yes;
};
channel general_dns
{
file \"/var/log/dns_logs\" 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 |
注册
个人空间
