A DNS the relevant configuration file
/etc/hosts Local Host list
/etc/nssswitch.conf Local Host Query method
/etc/host.conf
/etc/resolv.conf client DNS queries
Bind and bind-chroot for DNS Packages
The home directory for DNS is in /var/named/chroot
/var/named/chroot/etc/named.conf DNS Global Security configuration file
//name.rfc1912.zones Record DNS Forward and reverse resolution configuration files
Two Start the experiment.
First Enter /etc/hosts write down the IP address and domain name
then verify that the discovery can be seen IP Address
and then use Yum install bind and bind-chroot for both packages, which is the DNS installation package
then servicenamed Restart will be effective,
immediately chkconfignamed on You can restart the operation.
then you can / var See the named folder below.
Enter /var/named/chroot/etc you can see named.conf This configuration file.
You can get into it.
then enter Named.rfc1912.zones , the forward and reverse parsing configuration for the domain name
then go to /var/named/chroot/var/named you can see The two files in Named.localhost and named.empty
the next thing to do is create the file example.zone and zone.example These two files, and then will named.localhost and Named.empty content is copied into it, it is worth noting that all groups must be named
then you go to the forward domain file . example.zone and reverse domain name file zone.example , change it to the following
Then restart the service
Finally, use nslookup analysis, through the know, Test success!!!
The experiment is over!!!
From for notes (Wiz)
List of attachments
8.dns Service Build-up