summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-install
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-05-27 20:29:33 +0200
committerMartin Kosek <mkosek@redhat.com>2011-05-30 13:37:03 +0200
commitdb78f362358862c5225f8d3b83ecc2a88d47e45b (patch)
treebcbab49f726e0521b17121b068197385e9b32692 /install/tools/ipa-replica-install
parent80b4b3d44bbbe745e644b56c5371ef5f4cda6600 (diff)
downloadfreeipa-db78f362358862c5225f8d3b83ecc2a88d47e45b.tar.gz
freeipa-db78f362358862c5225f8d3b83ecc2a88d47e45b.tar.xz
freeipa-db78f362358862c5225f8d3b83ecc2a88d47e45b.zip
Honor netmask in DNS reverse zone setup.
ticket 910
Diffstat (limited to 'install/tools/ipa-replica-install')
-rwxr-xr-xinstall/tools/ipa-replica-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index 6df512312..2848366dd 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -272,6 +272,7 @@ def install_bind(config, options):
sys.exit("Unable to resolve IP address for host name")
ip = installutils.parse_ip_address(ip_address)
ip_address = str(ip)
+ ip_prefixlen = ip.prefixlen
create_reverse = True
if options.unattended:
@@ -285,7 +286,7 @@ def install_bind(config, options):
# specified, ask the user
create_reverse = bindinstance.create_reverse()
- bind.setup(config.host_name, ip_address, config.realm_name,
+ bind.setup(config.host_name, ip_address, ip_prefixlen, config.realm_name,
config.domain_name, forwarders, options.conf_ntp, create_reverse)
bind.create_instance()
@@ -309,8 +310,9 @@ def install_dns_records(config, options):
sys.exit("Unable to resolve IP address for host name")
ip = installutils.parse_ip_address(ip_address)
ip_address = str(ip)
+ ip_prefixlen = ip.prefixlen
- bind.add_master_dns_records(config.host_name, ip_address,
+ bind.add_master_dns_records(config.host_name, ip_address, ip_prefixlen,
config.realm_name, config.domain_name,
options.conf_ntp)