课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

About the BIND configuration file

About the BIND configuration file

- [Instructor] The main BIND configuration file is at /etc/named.conf. Let's open this file in less. Type in sudo less /etc/named.conf, and hit Enter. This file includes global options plus zone and include statements. The zone statements declare a zone, and the include statements include external files. All statements start with a left curly bracket and end with a right curly bracket and a semicolon. Statements can be nested this way but always follow the same pattern. Single line comments start with double slashes. If you want a multi-line comment, you can include it between a slash asterisk, and an asterisk slash. We can see an example of this by scrolling down a bit. Now let's scroll to the end of the file. The zone statements declare a zone and then point to the zone file that resides in the /var/named directory. There's nothing in the zone statement that tells you this. You just need to know it. Take a note of the name of the file in the zone statement. After the file keyword…

内容