r24640: Add a suggested BIND configuration snippit, to help with DNS configuration.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 24 Aug 2007 01:57:54 +0000 (01:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:28 +0000 (15:02 -0500)
When we sort out GSS-TSIG on the server, we can expand this to have
the 'right stuff'.

Andrew Bartlett
(This used to be commit 8f02ade1b2cc164f64f4ea8a371c107ccf6a81b3)

source4/scripting/libjs/provision.js
source4/setup/named.conf [new file with mode: 0644]

index 02b39068fcc16700f9e690e545989f4a81d5de8a..1054a9a50847941aad400a5b31d27c0647c6002f 100644 (file)
@@ -386,6 +386,7 @@ function provision_default_paths(subobj)
        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 @@ function provision_dns(subobj, message, paths, session_info, credentials)
                   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 */
diff --git a/source4/setup/named.conf b/source4/setup/named.conf
new file mode 100644 (file)
index 0000000..56bb3e0
--- /dev/null
@@ -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";
+};
+