diff --git a/netbox_dns/signals/ipam_dnssync.py b/netbox_dns/signals/ipam_dnssync.py index 4ea3fbce..d02bcae8 100644 --- a/netbox_dns/signals/ipam_dnssync.py +++ b/netbox_dns/signals/ipam_dnssync.py @@ -35,6 +35,9 @@ @receiver(post_clean, sender=IPAddress) def ipam_dnssync_ipaddress_post_clean(instance, **kwargs): + if not instance.dns_name: + return + if not isinstance(instance.address, IPNetwork): return