mail us  |  mail this page

products  |  company  |  support  |  downloads  |  isp services  |  contact us

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
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

Creative Commons License
This work is licensed under a Creative Commons License.

If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Mozilla

printer friendly

Print Page

SPF Record Conformant Domain Logo

Copyright © 1994 - 2008 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.