diff options
author | Jan Cholasta <jcholast@redhat.com> | 2011-05-27 20:29:33 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-05-30 13:37:03 +0200 |
commit | db78f362358862c5225f8d3b83ecc2a88d47e45b (patch) | |
tree | bcbab49f726e0521b17121b068197385e9b32692 /install/tools/ipa-replica-install | |
parent | 80b4b3d44bbbe745e644b56c5371ef5f4cda6600 (diff) | |
download | freeipa-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-x | install/tools/ipa-replica-install | 6 |
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) |