Skip to Content
DNS & BIND Cookbook
book

DNS & BIND Cookbook

by Cricket Liu
October 2002
Intermediate to advanced
240 pages
6h 58m
English
O'Reilly Media, Inc.
Content preview from DNS & BIND Cookbook

Chapter 3. BIND Name Server Configuration

Introduction

The configuration of BIND name servers has grown fiendishly complex since the old BIND 4 name servers. Back then, all you needed was four, maybe five configuration directives. Nowadays, most of the 10 or so configuration statements can have a nested structure with countless substatements -- nearly 100 for the options statement in the latest BIND 9 name server!

This chapter shows how to put those configuration statements and substatements together in sensible ways to produce useful results, like differentiating the response a name server gives out based on the querier’s IP address (Section 3.18). Related recipes are grouped together, beginning with recipes about configuring a name server’s control channel (Recipes Section 3.2 through Section 3.4) and progressing into more intricate, more arcane subjects, including dynamic update (Recipes Section 3.11 and Section 3.12) and forwarding (Recipes Section 3.15, Section 3.16, and Section 3.17).

When adapting these recipes for use in a name server’s named.conf file, remember these syntactic rules:

  • Terminate each statement and each substatement with a semicolon. It’s just like buying toys for your kids: if each one gets an identical semicolon, everybody’s happy. If you forget a semicolon for one, or somebody gets a colon or a period instead, there’s hell to pay.

  • Enclose all lists (of substatements, addresses, whatever) in curly braces, even if the list only contains one element -- or, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

DNS and BIND on IPv6

DNS and BIND on IPv6

Cricket Liu
Pro DNS and BIND

Pro DNS and BIND

Ron Aitchison
Pro DNS and BIND 10

Pro DNS and BIND 10

Ron Aitchison

Publisher Resources

ISBN: 0596004109Errata Page