O'Reilly logo

Absolute FreeBSD, 2nd Edition by Michael W. Lucas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring BIND with named.conf

At first glance, named.conf looks like C code. Don't worry if you don't know C, however, because the rules are very simple and the examples illustrate everything you must know. Any line beginning with two slashes (//) is a comment. Similarly, any text enclosed within the old-fashioned C comment marks, /* and */, is a (possibly multiline) comment. Everything else in named.conf is either an option or a zone. A zone is a fancy name for a domain—while, strictly speaking, they aren't identical, they're close enough for our purposes. An option controls how BIND operates.

Options

If you ignore the comments in the default named.conf, the file opens with a list of options, most of which are obscure and commented out. Use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required