summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-dns-install
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-01-04 08:55:47 -0500
committerSimo Sorce <ssorce@redhat.com>2011-01-07 05:05:54 -0500
commit9232a478773ea06f31938d3d202a15d91c58034e (patch)
treef5887cdf0feeb3fb8f5835cb7f8c8723efe28a4e /install/tools/ipa-dns-install
parent8a9fdbfb039bf1894cf3b301c8a0f84261ec8c1c (diff)
downloadfreeipa-9232a478773ea06f31938d3d202a15d91c58034e.tar.gz
freeipa-9232a478773ea06f31938d3d202a15d91c58034e.tar.xz
freeipa-9232a478773ea06f31938d3d202a15d91c58034e.zip
Create the reverse zone by default
A new option to specify reverse zone creation for unattended installs https://fedorahosted.org/freeipa/ticket/678
Diffstat (limited to 'install/tools/ipa-dns-install')
-rwxr-xr-xinstall/tools/ipa-dns-install9
1 files changed, 8 insertions, 1 deletions
diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install
index 25aeb610..66cdaffd 100755
--- a/install/tools/ipa-dns-install
+++ b/install/tools/ipa-dns-install
@@ -42,6 +42,9 @@ def parse_options():
help="Add a DNS forwarder")
parser.add_option("--no-forwarders", dest="no_forwarders", action="store_true",
default=False, help="Do not add any DNS forwarders, use root servers instead")
+ parser.add_option("--no-reverse", dest="no_reverse",
+ action="store_true", default=False,
+ help="Do not create reverse DNS zone")
parser.add_option("--zonemgr", dest="zonemgr",
help="DNS zone manager e-mail address. Defaults to root")
parser.add_option("-U", "--unattended", dest="unattended", action="store_true",
@@ -167,7 +170,11 @@ def main():
sys.exit("\nPassword is not valid!")
bind.dm_password = read_password("Directory Manager", confirm=False, validate=False)
- create_reverse = bindinstance.create_reverse(options.unattended)
+ create_reverse = True
+ if options.unattended:
+ create_reverse = not options.no_reverse
+ elif not options.no_reverse:
+ create_reverse = bindinstance.create_reverse()
bind.setup(api.env.host, ip_address, api.env.realm, api.env.domain, dns_forwarders, conf_ntp, create_reverse, zonemgr=options.zonemgr)
if bind.dm_password: