diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-08-24 01:57:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:28 -0500 |
commit | 2da0be9d5e3e7bd91c145031a0bc238a010a9e97 (patch) | |
tree | 091f3ddd98ff9971d6a0ab434c44a5808cb0a0c3 /source4 | |
parent | f2464adbbccde92d219f540132994cac41797d1d (diff) | |
download | samba-2da0be9d5e3e7bd91c145031a0bc238a010a9e97.tar.gz samba-2da0be9d5e3e7bd91c145031a0bc238a010a9e97.tar.bz2 samba-2da0be9d5e3e7bd91c145031a0bc238a010a9e97.zip |
r24640: 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
(This used to be commit 8f02ade1b2cc164f64f4ea8a371c107ccf6a81b3)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/libjs/provision.js | 7 | ||||
-rw-r--r-- | source4/setup/named.conf | 10 |
2 files changed, 16 insertions, 1 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 02b39068fc..1054a9a508 100644 --- a/source4/scripting/libjs/provision.js +++ b/source4/scripting/libjs/provision.js @@ -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 index 0000000000..56bb3e0f35 --- /dev/null +++ b/source4/setup/named.conf @@ -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"; +}; + |