【Solaris DNS安装和配置】
TITLE: BIND
LFS VERSION: 3.0-pre4
AUTHOR: Michenaud Laurent
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; } ;
};
; zone for access to Internet
zone "." {
type hint;
file "named.ca";
};
; zone for access to localhost
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
; zone for access to your domain
zone "zerezo.org" in {
type master;
notify no;
file "zerezo.org";
};
; zone for access to your domain using ip
zone "0.168.192.in-addr.arpa" in {
type master;
notify no;
file "db.192.168.0";
};
End of file
------------------------------------
3) Configuration files for each zone
There is a configuration file of each zone defined in named.conf.
These files are in /var/named . You have to create this directory.
a) /var/named/named.ca
This file is used when you are connected to internet.
I got this file on internet. It seems rather old, maybe you
can have a more recent one.
; Begin of file
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache .
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC registration services
; under anonymous FTP as
; file /domain/named.root
; on server FTP.RS.INTERNIC.NET
; -OR- under Gopher at RS.INTERNIC.NET
; under menu InterNIC Registration Services (NSI)
; submenu InterNIC Registration Archives
; file named.root
;
; last update: Aug 22, 1997
; related version of root zone: 1997082200
;
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
推荐阅读
- 安装 Solaris 操作系统
- Solaris 8 for Intel 操作系统的安装
- Solaris 8 停止登录服务器
- Solaris 磁带设备使用方法
- Solaris FTP issue
- Solaris 8 共享 Windows2000网络打印
- Solaris 图形窗口配置
- Solaris 使用不同规格的硬盘用Disksuite做镜像
- 怎样用u盘安装系统
- Longhorn系统安装及初步优化