Upper level abstraction for environments #20
Replies: 5 comments 11 replies
-
Hi @andy-shady-org, thanks for raising this idea. But I must admit that I don't see the proposed functionality yet. Views are not suitable for this use case, as they would completely isolate the zones, that's obvious. Delegation from zones in NetBox DNS to externally managed zones can be done right now. So that's not the issue as well. So I assume that you want to have two different 'cloud.example.com' zones with different records, but in the same view, correct? How would you like PTR records to be handled in this case? The logical functionality would be to have separate sets of reverse zones for the two forward zones as well, correct? How would the delegation to these zones look? What are the NS records in example.com for the two 'cloud.example.com' zones? Automatically setting up delegations is one thing that is planned for the forseeable future anyway, and this seems to be closely related to it - so yes, integrating that kind of functionality would be a good idea IMHO. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, So, the setup could look like this (simplified):
The example above also holds true for the various reverse zones in each respecitve environment. If I'm not understanding Andy's proposal wrong, it would make it possible for us to properly document our setup in netbox. I hope this helps and the feature finds it's way into the plugin! :-) Thanks! |
Beta Was this translation helpful? Give feedback.
-
@andy-shady-org: Thanks. If I get your point correctly now, the environment would be something like a namespace for views, functionally equivalent to some mapping like:
The advantage would then lie in the option to have identical view names in different environments, which is currently not possible. The workaround is to modify the view names in the provisioning process. Correct? |
Beta Was this translation helpful? Give feedback.
-
@tobus3000: Again, if i got Andys point correctly now, yours is about something else but also interesting (and in some way related). You are introducing the 'zone type', which can be used to specify if you have, for instance, a forward or dynamic zone (a delegation zone would be a 'normal' zone that happens to have delegation records, so it's not so special after all). This is something that isn't covered in NetBox DNS at all at the moment. Can we move that to another discussion to keep things separate? Currently I'm solving this with custom fields and some special handling in the provisioning code, but it would make a good enhancement to have something like a zone type field and some specific functionalities for, for instance, forward zones (they would have relaxed requirements for SOA fields), while delegated zones would create delegation records in the parent zones. |
Beta Was this translation helpful? Give feedback.
-
I mulled a bit about this, and I don't think it will make it very high on the priority list.
Regarding the workaround for not having
You can then search or filter for (local) names and environments, have multiple instances of identically named zones (with the same And the best of it is that you can have it today, as it takes only a couple of minutes to set up. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
It would be nice to have another level of abstraction that handles 'environments'.
For example, many companies now have multiple overlapping DNS environments, such as Cloud and On-Premise, where views are not sufficient for zone identification.
An example might be for 'example.com', where a sub-zone 'cloud.example.com' is delegated from on-premise DNS to a cloud DNS provider. In this case, the zone 'cloud.example.com' would have to exist as a 'delegated zone' inside the on-premise DNS servers, and also within the cloud provider DNS.
This could be separated with a top level of abstraction to define different environments:
In this case, it would be possible to have 'cloud.example.com' in 2 different environments.
Is this a feature that could be added? Im more than happy to contribute if you think this is something that is acceptable.
Thanks
Andy
Beta Was this translation helpful? Give feedback.
All reactions