E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
; temporarily housed at NSI (InterNIC)
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10
;
; housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
; temporarily housed at ISI (IANA)
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
;
; housed in Japan, operated by WIDE
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
; End of File
b) /var/named/named.local
You must have an alias postmaster that points to the user root
or another one.
; Begin of file
$TTL 3D
@ IN SOA zarba.zerezo.org. postmaster.zarba.zerezo.org. (
1999112002 ;
28800 ;
14400 ;
604800 ;
86400 );
NS zarba.zerezo.org.
1 PTR localhost. ; Adresse IP reverse
; End of file
c) /var/named/zerezo.org
; Begin of file
$TTL 3D
@ IN SOA zarba.zerezo.org. postmaster.zarba.zerezo.org. (
1999112002 ; numero de serie
28800 ; rafraichissement
14400 ; nouvel essais
604800 ; expiration
86400 ); temps de vie minimum
; NS = server de nom de domaine
@ IN NS zarba
@ IN NS zarba.zerezo.org.
; MX = server de mail, numero = priorite
@ IN MX 10 zarba
@ IN MX 20 zarba.zerezo.org.
; localt dns server
@ IN A 127.0.0.1
@ IN A 192.168.0.51
; server IP
localhost IN A 127.0.0.1
zarba IN A 192.168.0.51
; IP of others machines of the network
karine IN A 192.168.0.52
yaf IN A 192.168.0.7
; aliases
www IN CNAME zarba
ftp IN CNAME zarba
mail IN CNAME zarba
; End of file
d) /var/named/db.192.168.0
; Begin of file
$TTL 3D
@ IN SOA zarba.zerezo.org. postmaster.zarba.zerezo.org. (
1999112002 ; numero de serie
28800 ; rafraichissement
14400 ; nouvel essais
604800 ; expiration
86400 ); temps de vie
; nameserver
IN NS zarba.zerezo.org.
; IP Reverses adresses
1 IN PTR zarba.zerezo.org.
2 IN PTR karine.zerezo.org.
3 IN PTR yaf.zerezo.org.
; End of file
------------------------
4) Configuration of rndc
rndc is used to administrate bind. His developpment is not
fisnished but i prefer to put it in this hint rather than
the obsolete nslookup utility.
a) Creation of a key
You have to get a key so rndc can communicate with bind :
dnssec-keygen -a hmac-md5 -b 128 -n user rndc
It will create you two files. Get the values of the key in the .key one.
b) /etc/rdnc.conf
Create the file and edit the key please.
; Begin of file
options {
default-server localhost;
default-key rndc_key;
};
server localhost {
key rndc_key;
};
key rndc_key {
algorithm hmac-md5;
secret "Xd3zz2FgxvkML4V/BlVG8Q==";
};
; End of file
c) Edit again /etc/named.conf and add the following lines :
key rndc_key {
algorithm hmac-md5;
secret
"Xd3zz2FgxvkML4V/BlVG8Q==";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};
---------------
5) /etc/init.d/named
a) Here is the boot scripts
#!/bin/sh
# Begin /etc/init.d/
#
# Include the functions declared in the /etc/init.d/functions file
#
source /etc/init.d/functions
推荐阅读
- 安装 Solaris 操作系统
- Solaris 8 for Intel 操作系统的安装
- Solaris 8 停止登录服务器
- Solaris 磁带设备使用方法
- Solaris FTP issue
- Solaris 8 共享 Windows2000网络打印
- Solaris 图形窗口配置
- Solaris 使用不同规格的硬盘用Disksuite做镜像
- 怎样用u盘安装系统
- Longhorn系统安装及初步优化
