In this zone_data_files.cfg example, we specify a set of BIND configuration files. Note how the #include directives incorporate the zone_data_common_files.cfg file to achieve some commonality (for example, of timings and NS and MX records) across every zone data file.
///////////////////////////////////////////////////////////////////////////////
//
// zone_data_files.cfg
//
///////////////////////////////////////////////////////////////////////////////
#if dnsmaster
///////////////////////////////////////////////////////////////////////////////
db.pikt.org
path "=zondir/db.pikt.org" mode 644 uid =rootuid gid =rootgid
$ORIGIN org.
=zonttl
pikt IN SOA pikt.org. root.pikt.org. (
2004061201 ; serial number
# include <files/adm/zone_data_common_files.cfg>
IN A 12.100.32.132
$ORIGIN pikt.org.
www IN A 12.100.32.132
///////////////////////////////////////////////////////////////////////////////
db.pikt.net
path "=zondir/db.pikt.net" mode 644 uid =rootuid gid =rootgid
$ORIGIN net.
=zonttl
pikt IN SOA pikt.net. root.pikt.net. (
2004061201 ; serial number
# include <files/adm/zone_data_common_files.cfg>
IN A 11.22.33.44
$ORIGIN pikt.net.
www IN A 11.22.33.44
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
db.earlymusichicago.org
path "=zondir/db.earlymusichicago.org" mode 644 uid =rootuid gid =rootgid
$ORIGIN org.
=zonttl
earlymusichicago IN SOA earlymusichicago.org.
root.earlymusichicago.org. (
2004061201 ; serial number
# include <files/adm/zone_data_common_files.cfg>
IN A 11.22.33.44
$ORIGIN earlymusichicago.org.
www IN A 11.22.33.44
dowland IN A 11.22.33.44
london-bak IN A 192.168.3.60
///////////////////////////////////////////////////////////////////////////////
db.earlymusichicago.com
path "=zondir/db.earlymusichicago.com" mode 644 uid =rootuid gid =rootgid
$ORIGIN com.
=zonttl
earlymusichicago IN SOA earlymusichicago.com.
root.earlymusichicago.com. (
2004061201 ; serial number
# include <files/adm/zone_data_common_files.cfg>
IN A 11.22.33.44
$ORIGIN earlymusichicago.com.
www IN A 11.22.33.44
dowland IN A 11.22.33.44
///////////////////////////////////////////////////////////////////////////////
#endif // dnsmaster
///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would, for example, install the db.pikt.org zone data file to the master name server system with the command:
# piktc -iv +F db.pikt.org +H dnsmaster
[For more examples, see Samples.]
Home |
FAQ |
News |
Intro |
Samples |
Tutorial |
Reference |
Software |
Authors |
Licensing |
SiteSearch
Links |
SiteIndex |
Pikt-Users |
Pikt-Workers |
Contribute |
ContactUs |
Top of Page
Page best viewed at 1024x768.
Page last updated 2005-06-22.
This site is
PIKT®
powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund. All rights reserved.
|