]> mj.ucw.cz Git - nsc-5.git/blobdiff - README
2.99a prerelease.
[nsc-5.git] / README
diff --git a/README b/README
index d87e7b5eb03b8937c76303de50d62d840c0abb9a..019d0bb09b596690ecbc6958682e0977a29c22d8 100644 (file)
--- a/README
+++ b/README
@@ -1,10 +1,18 @@
 
-            Domain Name Server Configuration Utilities -- NSC 2.1
+            Domain Name Server Configuration Utilities -- NSC 3.0
 
-                      (c) 1998 Martin Mares <mj@ucw.cz>
+                   (c) 1997--2003 Martin Mares <mj@ucw.cz>
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
+#### BIG FAT WARNING ####
+
+NSC 3.0 is close to having been rewritten from scratch. However, the documentation
+has not been updated yet, only the example configs in cf/* were.
+
+#### BIG FAT END OF WARNING ####
+
+
    NSC is a set of shell and M4 scripts for easy maintenance of all domain name
 server files (including configuration and zone files). It requires BIND 8.X,
 GNU bash and GNU m4 to be installed on the system. All programs have been
@@ -40,12 +48,17 @@ GNU General Public License. See file COPYING in any of the GNU utility archives
        - Enjoy your new DNS setup. If everything goes OK, be happy. Else
          write a bug report :-)
 
+   An interesting companion to this program is the Sleuth utility which checks
+consistency of DNS zones. It's written in perl with help of the DNS module,
+knows of more errors than other checkers and it's freely available at
+ftp://atrey.karlin.mff.cuni.cz/pub/local/mj/net/sleuth-1.3.tar.gz.
+
 
 2. The Domain List File
 ~~~~~~~~~~~~~~~~~~~~~~~
 
    The domain list contains configuration commands describing all domains the
-server should act as primary or secondary for and also some other parameters
+server is either primary or secondary for and also some other parameters
 which get inserted to named.conf and to the Makefile:
 
 OPTIONS(...)   - set insert options to named.conf. This command _must_ be used
@@ -62,35 +75,40 @@ SLAVE(f1,f2,...) - same as FORWARDers, but asks _only_ these.
 
 MAKEFILE(...)  - insert user data to the Makefile.
 
-PRIMARY(zone)  - define zone we act as a primary name server for.
+PRIMARY(zone)  - define zone we're a primary name server for.
 
-SECONDARY(zone, primary) - define zone we act as a secondary name server
-                 for. "primary" is an IP address of the primary NS for this
+SECONDARY(zone, primary) - define zone we're a secondary name server for.
+                 "primary" is an IP address of the primary NS for this
                  zone.
 
 REVERSE(netprefix, zone1, zone2...) - define reverse zone containing all hosts
-                 from given zones starting with given netprefix. If you want
-                 to delegate some subrange of addresses to another name server
-                 (as defined by RFC XXXX), you need to use netprefix+count
-                 instead of zone name (e.g., 194.213.32.16+16) -- this
-                 generates correct CNAME glue records for the subrange.
+                 from given zones starting with given netprefix.
+
+                 If you want to delegate a part of your C range to another
+                 name server, use the PARTIAL directive to configure a partial
+                 reverse domain and mention a subzone (e.g., 194.213.32.16+16)
+                 in the main REVERSE directive.
+
                  The list of name servers authoritative for the reverse zone
                  is obtained from the _first_ zone specified as an argument,
-                 which must NOTbe a subrange specifier (you should use a dummy
+                 which must NOT be a subrange specifier (you should use a dummy
                  zone in case you want only subranges).
 
 PARTIAL(netprefix, count, primary, sec1, sec2...) - define delegation of a
                  reverse subzone (see REVERSE above) consisting of <count>
                  addresses starting at <netprefix>. <primary> is a master
                  server for that subzone, <sec1> ... <secn> are secondaries
-                 (except our name-server which is _always_ expected to be
-                 a secondary).
+                 (don't list the local name-server, it's always expected to
+                 be a secondary).
+
+PREVERSE(netprefix, zone1, zone2...) - analogon of REVERSE for partial zones
+                 (to be used when you want to export a subzone to another
+                 server which is configured by PARTIAL). Just use a 4-component
+                 netprefix.
+
+You can also change several predefined macros:
 
-PREVERSE(netprefix, zone1, zone2...) - define reverse zone for a subrange
-                 -- used when we want to export a subzone (to be imported
-                 by the master server for the corresponding parent zone
-                 by a mechanism similar to that specified by the PARTIAL
-                 command).
+       - named_restart_cmd: command used to restart named (default: `ndc reload')
 
 
 3. The Domain Files
@@ -145,7 +163,7 @@ Hosts:
 
    The NSC directory hierarchy contains the following directories:
 
-       bak/                    - backups of zones we act as a secondary for
+       bak/                    - backups of zones we're a secondary for
        bin/                    - scripts (e.g., nsconfig)
        cf/                     - configuration files (domains etc.)
        m4/                     - M4 scripts
@@ -174,3 +192,14 @@ chkdom             Checks domains for correctness using the 'host' utility
                (check ftp://ftp.nikhef.nl/pub/network for latest version).
                Use chkdom <domain> <NS> to check specific domain or no
                parameters to check all domains mentioned in cf/domains.
+               It's even better to use the Sleuth script mentioned in
+               the introduction.
+
+convert                A simple perl script for conversion of zone files to NSC
+               domain files. Requires the DNS module (available from CPAN at
+               ftp.cpan.org).
+
+chkdel         A simple perl script for checking of domain delegations --
+               it checks all PRIMARY and SECONDARY records in cf/domains
+               against NS records. Requires the DNS Perl module and also
+               some tweaking of parameters at the top of the script.