Shenzhen letter lion Linux installation configuration under DNS server

DNS server using C / S mode, the network environment as follows: IP: 192.168 * * domain name: www ** com;... .
The server configuration
1. The basic configuration of the network environment; (optionally one of three methods) by inspection IP configuration ifconfig command.
1) disposed command;
#ifconfig eth0 192.168.0.11 Netmask 255.255.255.0 up

2) Graphical interface configuration;
#ifdown eth0
#netconfig (into the graphical interface configured the IP)
#ifup eth0

3) through a script file to configure;
#vi / etc / sysconfig / Network-scripts / the ifcfg-eth0
the DEVICE = eth0
BOOTPROTO = none
ONBOOT = yes
IPADDR = 192.168.0.11
NETMASK = 255.255.255.0
(save and exit): WQ
2. Check for and install the necessary software packages
Step 1: Check and install the necessary software on the DNS server

rpm –qa|grep bind

Here Insert Picture Description
If the result does not need to perform the installation steps.
According to the results returned, did not install the software installation, find out the installation disk from the installation disk, perform the following steps:
#mount / dev / cdrom / mnt / cdrom
#cd / mnt / cdrom / RedHat / RPMS
# Rpm--ivh the bind-9.2 .1-16.i386.rpm
#rpm -ivh the bind-utils-9.2.1-16.i386.rpm
#rpm RedHat-config--ivh the bind-1.9.0-13.noarch.rpm
#rpm -ivh caching- 7.2-7.noarch.rpm-nameserver
// three selectable installation

Note: CD-ROM to the correct use, mount (mount) and unloaded (umount)
Step 2: Modify the "/etc/named.conf" file (I have here are used VI editor) to create forward resolution zone file name named .aa.com reverse analysis region and the file name named.192.168.0;
add the following:
Here Insert Picture Description
step 3: in the directory / var / named aa.com forward resolution edit file area region and the reverse named.aa.com parse zone file named.192.168.0, (Note: to create these two files in / var / named directory, we use the cp command completion, where you omit this step)
1) edit analytical positive zone file named. aa.com as follows:
Here Insert Picture Description
save and exit: wq
2) edit reverse DNS zone file named.192.168.0, reads as follows:
Here Insert Picture Description
save and exit: wq
corresponding rule I generally write a few here:
SOA (start of Authority): start authorized record indicates the start of a licensed area.
A (Address): address record for converting a host name into an IP address.
CNAME (Canonical NAME): Alias recording alias given for the host.
MX (Mail eXchanger): mail exchange record inform the mail servers in the domain.
NS (Name Server): the domain name record identifies a domain name server.
PTR (domain name PoinTeR): Domain pointer record for converting an address to a host name
Step 4: Restart the named service
#service named restart #rndc reload
Client configuration
editing /etc/resolv.conf, adding default search domain and domain name server, which reads as follows
Domain aa.com
Search aa.com
nameserver 192.168.0.11
Host www.aa.com
Host 192.168.0.11
with nslookup test
if they can get the following the effect proved DNS configuration basically completed
Here Insert Picture Description

Published 29 original articles · won praise 0 · Views 600

Guess you like

Origin blog.csdn.net/drrui520/article/details/104868984