Related packages:
bind-9.3.6-2.p1.e15.i386.rpmcaching-nameserver-9.3.6-2.p1.e15.i386.rpmbind-utils-9.3.6-2p1.e15.i386.rpmbind-chroot- 9.3.6-2.p1.e15.i386.rpm
Note: After enabling chroot, the BIND program's virtual directory is/var/named/chroot/,so the real path to/etc/named.conf is/var/named/chroot/etc/named.conf.the real path to/var/named is/var/named/chroot/var/named
DNS resource record type:
A Host resource record that establishes the domain name to the IP address of the mapping CNAME alias resource record, a substitute for other resource records that specifies the name of the alternate SOA starting authority NS name server, specifying the authorized name of the server PTR pointer Resource records, used to implement the reverse query, establish the IP address to the domain name Mapping mx mail exchange records, specify the server to Exchange or forward the message information Hinfo host information records, indicating the CPU and the OS
DNS Server configuration steps (example, 4 steps):
I. Copy template file generate global profile (under directory/var/named/chroot/etc/): cp-p named.caching-nameserver.conf named.conf Modify global configuration The pieces/var/named/chroot/etc/naned.conf as follows: 1, listen-on Port , (any;}; Listens for all IP2, Allow-query {any;}; Receive requests for all DNS clients 3, match-clients { any;}; Specify to receive all DNS client sources IP4, match-destinations {any;}; Specify to receive all DNS client purposes IP5, include " /etc/named.zones"; Specifies that the master profile is Named.zones
Second, copy the template file to generate the main configuration file (under directory/var/named/chroot/etc/): cp-p named.rfc1912.zones named.zonesModify the global configuration file/var/named/chroot/etc/naned.zones as follows: 1, zone " jurp.cn"In {//domain name type Master; Primary server File " Jurp.cn.zone" ; Forward parse filename}2, zone " 168.192.in-addr.arpa"In {//domain name type Master; Primary server File " 192.168.zone"; Reverse parse file name}
Third, copy the template file to generate a forward parsing file (under directory/var/named/chroot/var/named/): cp-p Named.zero Jurp.cn.zoneModify the forward parsing file/var/named/chroot/var/named/jurp.cn.zone as follows: 1, @ in SOA dns.jurp.cn. mail.jurp.cn.Full domain name, admin email address 2, @ in NS dns.jurp.cn. Description Domain Name server @ in MX ten mail.jurp.cn. Define mail Exchanger 3, DNS in A 192.168.1.2Host record Mail in A 192.168.0.3Host record www in A 192.168.0.5The host record replication template file generates a reverse parsing file (under directory/var/named/chroot/var/named/): cp-p named.local 192.168.zoneModify the reverse parsing file/var/named/chroot/var/named/192.168.zone as follows: 1, @ in SOA dns.jurp.cn. mail.jurp.cn.Full domain name, admin email address 2, @ in NS dns.jurp.cn.Description Domain Name server @ in MX ten mail.jurp.cn.Define mail Exchanger 3, 2.1 in PTR dns.jurp.cn. Pointer resource record 3.0 in PTR mail.jurp.cn. Pointer resource record 5.0 in PTR www.jurp.cn. Pointer resource record
Iv. starting the DNS service: Services named restart
Test Tools:
nslookup, dig, host
DNS Server Configuration--linux