BIND statement layout variations

BIND is very picky about opening and closing brackets/braces, semicolons and all the other separators defined in the formal statement syntax. The literature contains various ways to layout statements. The variations, while they may be confusing, are simply attempts by the authors to minimise the potential for errors, they have no other significance. Use any method you feel comfortable with. The following zone clause layouts are all equivalent and acceptable to BIND.

// dense single line
zone "example.com" {type slave; file "slave.example.com"; masters {10.0.0.1;};};
// lots of lines 
zone "example.com" {
   type slave; 
   file "slave.example.com"; 
   masters {10.0.0.1;};
   };
// spot the difference
zone "example.com" {
   type slave; 
   file "slave.example.com"; 
   masters {10.0.0.1;}; };

Pro DNS and BIND by Ron Aitchison

Contents

tech info
guides home
dns articles
intro
contents
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
quickstart
5 install bind
6 samples
reference
7 named.conf
8 dns records
operations
9 howtos
10 tools
11 trouble
programming
12 bind api's
security
13 dns security
bits & bytes
15 messages
resources
notes & tips
registration FAQ
dns resources
dns rfc's
change log

printer friendly

Print Page

SPF Record Conformant Domain Logo

Copyright © 1994 - 2009 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by super.net.sg
web-master at zytrax
Page modified: June 21 2007.