8.dns Service Build-up

Source: Internet
Author: User

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

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.