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 "" {type slave; file ""; masters {;};};
// lots of lines 
zone "" {
   type slave; 
   file ""; 
   masters {;};
// spot the difference
zone "" {
   type slave; 
   file ""; 
   masters {;}; };

Pro DNS and BIND by Ron Aitchison


tech info
guides home
dns articles
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
5 install bind
6 samples
7 named.conf
8 dns records
9 howtos
10 tools
11 trouble
12 bind api's
13 dns security
bits & bytes
15 messages
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
web-master at zytrax
Page modified: June 21 2007.