Skip to content

ipam-coupling - Restrict using an in-use name #173

Closed Answered by peteeckel
jabbate19 asked this question in Q&A
Discussion options

You must be logged in to vote

Actually no - the RFCs are quite unambiguous. Multiple instances of the same name with different versions are completely legal, and so there is no such feature. It would actually restrict the creation of DNS records in a way that would not be generally useful, especially given the fact that your use case is quite unique.

But there is a way out.

NetBox has a feature called 'Custom Validation' that was created for exactly that kind of use case. Essentially you write a piece of Pyhon code that makes sure that there is no other record in the database that has the same zone ID and name. The validate() function needs to check that there is no other Record object with the same zone ID and name, …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jabbate19
Comment options

@jhofmueller
Comment options

@peteeckel
Comment options

Answer selected by peteeckel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants