From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

About the BIND configuration file

About the BIND configuration file - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Start my 1-month free trial

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…

Contents