peteeckel/netbox-plugin-dns

RRset TTL Uniqueness is enforced for inactive records

Closed this issue · 0 comments

Versions
NetBox Version: 4.0.8
NetBox DNS Version: 1.0.5
Python Version: 3.11.5

Describe the bug
The uniqueness of TTLs across RRsets should only be enforced for active records. It is, however, not possible to create an active and an inactive record in an RRset (same zone, name and type) with different TTL values.

To Reproduce
Steps to reproduce the behavior:

  1. Create an A record with name name1, value 10.0.0.1 and status 'Inactive' in a zone.
  2. Create an A record with name name1, value 10.0.0.2 and status 'Active' in the same zone

Expected result
Both records are created.

Actual result
The second record is not created with the (incorrect) message 'There is at least one active A record in zone ... and TTL is different'