summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--designate/backend/impl_infoblox/object_manipulator.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/designate/backend/impl_infoblox/object_manipulator.py b/designate/backend/impl_infoblox/object_manipulator.py
index 8871e72d..9d696a67 100644
--- a/designate/backend/impl_infoblox/object_manipulator.py
+++ b/designate/backend/impl_infoblox/object_manipulator.py
@@ -111,11 +111,17 @@ class InfobloxObjectManipulator(object):
def create_zone_auth(self, fqdn, dns_view):
try:
+ if fqdn.endswith("in-addr.arpa"):
+ zone_format = 'IPV4'
+ elif fqdn.endswith("ip6.arpa"):
+ zone_format = 'IPV6'
+ else:
+ zone_format = 'FORWARD'
self._create_infoblox_object(
'zone_auth',
{'fqdn': fqdn, 'view': dns_view},
{'ns_group': self.connector.ns_group,
- 'restart_if_needed': True},
+ 'restart_if_needed': True, 'zone_format': zone_format},
check_if_exists=True)
except exc.InfobloxCannotCreateObject as e:
LOG.warning(e)