Experimental environment:
Aix:os version: AIX 5L for power V5.1
IP address:192.168.0.5
Assume Domain name: king.com
Host Name: pp.king.com
As a domain name server, the ability to have positive and reverse solutions is called a complete server. Now there are many, especially win's DNS server many do not have the ability to reverse the solution.
Let's get to the point.
Set up a complete DNS server mainly requires 6 files:
named.conf #主要的设定文件
named.ca #
Positive solution files on the local side
Anti-Solution files on the local side
Positive solution file for domain name
Anti-solution file for domain name
After an AIX V5.1 installation completes, the DNS software bind has been installed and has been started.
You can use this command to view:
# lssrc-s named
subsystem Group PID Status
Named Tcpip 15666 Active
The default will be installed two versions, Bind4 and Bind8, of course, now the latest version has bind9, but we use their own bind8 can be.
The system defaults to using Bind4 at the beginning, so we now execute the following command to start using Bind8:
# Rm/usr/sbin/named/usr/sbin/named-xfer
Ln-s/usr/sbin/named8/usr/sbin/named
Ln-s/usr/sbin/named8-xfer/usr/sbin/named-xfer
Check:
# named-v
Named 8.2.2-p5+fix_for_cert_till_01_30_01 Sun APR 8 08:05:23 CDT 2001
build@builder07.austin.ibm.com:/.../austin.ibm.com/fs/proj/p1/aix/aix510
/com4/cmvc/obj/power/tcpip/usr/sbin/named8
Now we're going to write the configuration file. (The configuration method is the same as the Solaris configuration method)
1, the first is the most important settings file, other documents are defined by it, in order to take effect.
/etc/named.conf (Bind4 's time this file is named: named.boot)
You can use the touch/etc/named.conf command to generate files and then add content
Options {
Directory "/ETC"; #设定工作目录, bind finds the desired file in the directory set here.
};
Zone "." {
Type hint;
File "named.ca"; #根服务器
};
Zone "0.0.127.in-addr.arpa" {
Type master;
File "0.0.127.in-addr.arpa.zone"; #本机端的反解文件, the file name can be defined by itself.
};
Zone "localhost" {
Type master;
File "Localhost.zone"; #本机端的正解文件
};
Zone "King.com" {
Type master;
File "King.com.zone"; The positive solution file #domain name
};
Zone "0.168.192.in-addr.arpa" {
Type master;
File "0.168.192.in-addr.arpa.zone"; Anti-solution file for #domain name
};