summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-06-01 14:51:06 +0200
committerMartin Kosek <mkosek@redhat.com>2011-06-15 09:02:09 +0200
commitf21508978511d40a60fbdaaa786bcc96f99578d5 (patch)
tree61f1fcc141b48cb5b944535abcf3728e575f4585 /install
parent058e3d03068f84d4fd62e1ae77156329ceda2537 (diff)
downloadfreeipa-f21508978511d40a60fbdaaa786bcc96f99578d5.tar.gz
freeipa-f21508978511d40a60fbdaaa786bcc96f99578d5.tar.xz
freeipa-f21508978511d40a60fbdaaa786bcc96f99578d5.zip
Improve DNS zone creation
When a new DNS zone is being created a local hostname is set as a nameserver of the new zone. However, when the zone is created during ipa-replica-prepare, the the current master/replica doesn't have to be an IPA server with DNS support. This would lead to DNS zones with incorrect NS records as they wouldn't point to a valid name server. Now, a list of all master servers with DNS support is retrieved during DNS zone creation and added as NS records for a new DNS zone. https://fedorahosted.org/freeipa/ticket/1261
Diffstat (limited to 'install')
-rwxr-xr-xinstall/tools/ipa-replica-prepare8
1 files changed, 3 insertions, 5 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare
index cd13f5d93..8117bfcdd 100755
--- a/install/tools/ipa-replica-prepare
+++ b/install/tools/ipa-replica-prepare
@@ -425,8 +425,6 @@ def main():
ip_address = str(ip)
ip_prefixlen = ip.prefixlen
- ns_ip_address = resolve_host(api.env.host)
-
if ip.defaultnet:
revzone = ip.reverse_dns
if ip.version == 4:
@@ -445,10 +443,10 @@ def main():
if prefix > 0:
ip_prefixlen = prefix
else:
- add_reverse_zone(ip_address, ip_prefixlen, ns_ip_address)
+ add_reverse_zone(ip_address, ip_prefixlen)
- zone = add_zone(domain, nsaddr=ns_ip_address)
- add_fwd_rr(zone, name, ip_address)
+ add_zone(domain)
+ add_fwd_rr(domain, name, ip_address)
add_ptr_rr(ip_address, ip_prefixlen, replica_fqdn)
try: