DNS service configuration and application 1-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. the dns service is not installed in rh9 by default. You can run the command rpm-q bind to check it.
2. Install the chroot package: chroot is the abbreviation of change root. It can change the directory location referenced when the program is running, that is, a specific subdirectory is used as the virtual/directory of the program. For dns, experienced network administrators use the chroot technology to enhance bind Security.
Note: After chroot is used, the virtual root directory of the bind program is/var/named/chroot /.
3. Configure the primary name server
The primary name server is used to store the dns servers configured in the region. It stores the original data of the region file.
4. Main configuration file
The main configuration file of bind is/etc/named. conf. The statements in the configuration file must end with a semicolon. You must enclose the configuration statements in the container command (option) in curly brackets. You can use/**/(* is an asterisk), //, and # to annotate a comment.
The statements in the container Command option belong to the global options of the defined server. This statement has only one option in each configuration file. If multiple option statements exist, the first configuration is valid and generates a warning message.
5. Set server options
Set the path of the nemed file to be read and written: The directory option defines the path of the data file in the dns region. If the subsequent statement of the configuration file only specifies the file name, the file path is not provided (for example, file "named. ca), the path of the file is defined by default. Directory "/var/named ";
6. Set the path where the server stores the database: dump-file defines the path where the server stores the database. This option is used when the rndc dump command is executed. Dump-file "/var/named/data/cache_dump.db"
Note: rndc is a remote Name Daemon Configuration tool that can be used to start, stop, and reload configuration files.
7. Set the path of the server statistics file: The statistics-file option defines the path of the server statistics file. This option is used when the fndc stats command is used. Statistics-file "/var/named/data/named_stats.txt ";
8. Set the shared key file: include "/etc/rndc. key" to be compatible with bind8.
9. Define the server version: version 4.9.11 is used to mislead hackers
[ This post was last edited by jackiesr at, September 18 ,.]
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