DNS Server Configuration Files

The DNS server is a potentially complex system configured by a surprisingly straightforward set of files. These files consist of a single boot file and several zone data files, each of which is pointed to by a zone record in the boot file. This section discusses these files and their features, syntax, and conventions.

The DNS Boot File: /etc/named.conf

The /etc/named.conf file is read in when named is started. Boot file comments can be done in three different ways:

/* C style comments can comment out multiple lines */
// C++ style comments comment one or fractional lines
# Shellscript style comments function like C++ style

Other statements take the form

							keyword {statement; statement; ...; statement;};
						

Because ...

Get Red Hat® Linux® 7 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.