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-dns-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-dns-install')
-rwxr-xr-x | install/tools/ipa-dns-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install index e8379191a..91edcca8a 100755 --- a/install/tools/ipa-dns-install +++ b/install/tools/ipa-dns-install @@ -113,6 +113,7 @@ def main(): sys.exit("Unable to resolve IP address for host name") else: ip_address = read_ip_address(api.env.host, fstore) + ip_prefixlen = ip_address.prefixlen ip_address = str(ip_address) logging.debug("will use ip_address: %s\n", ip_address) @@ -158,7 +159,7 @@ def main(): 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) + bind.setup(api.env.host, ip_address, ip_prefixlen, api.env.realm, api.env.domain, dns_forwarders, conf_ntp, create_reverse, zonemgr=options.zonemgr) if bind.dm_password: api.Backend.ldap2.connect(bind_dn="cn=Directory Manager", bind_pw=bind.dm_password) |