Author: abartlet
Date: 2007-08-24 01:57:54 +0000 (Fri, 24 Aug 2007)
New Revision: 24640

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24640

Log:
Add a suggested BIND configuration snippit, to help with DNS configuration.

When we sort out GSS-TSIG on the server, we can expand this to have
the 'right stuff'.

Andrew Bartlett

Added:
   branches/SAMBA_4_0/source/setup/named.conf
Modified:
   branches/SAMBA_4_0/source/scripting/libjs/provision.js


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/libjs/provision.js
===================================================================
--- branches/SAMBA_4_0/source/scripting/libjs/provision.js      2007-08-23 
21:53:00 UTC (rev 24639)
+++ branches/SAMBA_4_0/source/scripting/libjs/provision.js      2007-08-24 
01:57:54 UTC (rev 24640)
@@ -386,6 +386,7 @@
        paths.secrets = lp.get("secrets database");
        paths.keytab = "secrets.keytab";
        paths.dns = lp.get("private dir") + "/" + dnsdomain + ".zone";
+       paths.named_conf = lp.get("private dir") + "/named.conf";
        paths.winsdb = "wins.ldb";
        paths.ldapdir = lp.get("private dir") + "/ldap";
        paths.ldap_basedn_ldif = paths.ldapdir + "/" + dnsdomain + ".ldif";
@@ -833,7 +834,11 @@
                   message, paths.dns, 
                   subobj);
 
-       message("Please install the zone located in " + paths.dns + " into your 
DNS server\n");
+       setup_file("named.conf", 
+                  message, paths.named_conf, 
+                  subobj);
+
+       message("Please install the zone located in " + paths.dns + " into your 
DNS server.  A sample BIND configuration snippit is at " + paths.named_conf + 
"\n");
 }
 
 /* Write out a DNS zone file, from the info in the current database */

Added: branches/SAMBA_4_0/source/setup/named.conf
===================================================================
--- branches/SAMBA_4_0/source/setup/named.conf  2007-08-23 21:53:00 UTC (rev 
24639)
+++ branches/SAMBA_4_0/source/setup/named.conf  2007-08-24 01:57:54 UTC (rev 
24640)
@@ -0,0 +1,10 @@
+#
+# Insert this snippit into your named.conf or bind.conf to configure
+# the BIND nameserver.
+#
+
+zone "${DNSDOMAIN}." IN {
+        type master;
+        file "${DNSDOMAIN}.zone";
+};
+

Reply via email to