Autocreate A/AAAA records if PTR is given a FQDN

This commit is contained in:
rdujardin 2016-08-08 12:18:07 +02:00
parent f873848e29
commit d14b0ec52d

View File

@ -524,7 +524,7 @@ class IPAddress(CreatedUpdatedModel):
which_zone = None
zones = dns.models.Zone.objects.all()
for zone in zones:
if self.ptr.endswith(zone.name):
if self.ptr.endswith(zone.name) or self.ptr.endswith(zone.name + '.'):
which_zone = zone
break