help="The DNS server backend. SAMBA_INTERNAL is the builtin name server, " \
"BIND9_FLATFILE uses bind9 text database to store zone information, " \
"BIND9_DLZ uses samba4 AD to store zone information (default), " \
- "NONE skips the DNS setup entirely (not recommended)")
+ "NONE skips the DNS setup entirely (not recommended)",
+ default="BIND9_DLZ")
parser.add_option("--dnspass", type="string", metavar="PASSWORD",
help="choose dns password (otherwise random)")
parser.add_option("--ldapadminpass", type="string", metavar="PASSWORD",
elif opts.function_level == "2008_R2":
dom_for_fun_level = DS_DOMAIN_FUNCTION_2008_R2
-if opts.dns_backend is None:
- dns_backend = "BIND9_DLZ"
-else:
- dns_backend = opts.dns_backend
-
creds = credopts.get_credentials(lp)
creds.set_kerberos_state(DONT_USE_KERBEROS)