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 BIND zone files

About BIND zone files

- [Narrator] Now that we've looked at the bind configuration let's take a look at a zone file and analyze it. Type in sudo space less space slash var slash named slash named dot localhost into a terminal. A zone file contains directives and resource records. The directives control how the DNS server operates and how to apply settings to the zone. The resource records apply an identity to the domain. To differentiate between directives and resource records, you should know that directives start with a dollar sign. We can see in this file that we have dollar sign TTL as an example directive followed by its option. For resource records, we have NS, or a name server record, an A record for an IP version 4 address, and a quadruple A record for an IP version 6 address. The name of this file is named dot localhost, so that name is resolved to 127 dot 0 dot 0 dot 1 if we're using IP version 4. We could also have a cname record, or alias, an MX record for mail exchange, or a PTR record which…

Contents