diff --git a/netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html b/netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html
index 3b8c101..55062f6 100644
--- a/netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html
+++ b/netbox_ddns/templates/netbox_ddns/ipaddress/dns_info.html
@@ -14,15 +14,24 @@
Forward DNS |
- {{ object.dnsstatus.get_forward_action_display }}:
- {{ object.dnsstatus.get_forward_rcode_display }}
+ {% if object.dnsstatus.forward_action is not None %}
+ {{ object.dnsstatus.get_forward_action_display }}:
+ {{ object.dnsstatus.get_forward_rcode_display }}
+ {% else %}
+ Not created
+ {% endif %}
|
Reverse DNS |
- {{ object.dnsstatus.get_reverse_action_display }}:
- {{ object.dnsstatus.get_reverse_rcode_display }} |
+ {% if object.dnsstatus.reverse_action is not None %}
+ {{ object.dnsstatus.get_reverse_action_display }}:
+ {{ object.dnsstatus.get_reverse_rcode_display }}
+ {% else %}
+ Not created
+ {% endif %}
+