Replies: 4 comments 1 reply
-
Hi @WolfSpire, thanks for bringing this up again, I think it's going to be interesting :-)
In addition to it, it might require the NetBox project to document a few more interfaces for plugin use. Generally that's the problem: There are many things one can do, but I learned the hard way that it's not a good idea to use too many of NetBox' undocumented interfaces. The project is very dynamic, and it's not only 'Do not rely on it, it might change in the next few years or not', it actually will break. Been there, done that. But now let's look at your ideas ...
Actually that's an interesting idea, and we could even detect the domain relationship automatically in many cases. When a domain is detected to be a subdomain of another one we could add the
We need to be careful not to confuse infrastructure with DNS data ... but I see what you want to achieve. Would it help you if you could somwhow link DNS records to DCIM devices and/or Virtual Machines? I'm not sure how much we can do at the moment in terms of accessing the NetBox
Not sure if you're maintaining your Docker hosts in NetBox ... but the idea outlined above for Devices/VMs would also work for Docker hosts if you did.
Idea: We could check for any
I'm not sure about that one yet. The idea is intriguing, but I've never come across any reasonable use case for it - apart from yours, obviously. Just so I get your point, the idea would be to create a template for a set of records, e.g. an
No, certainly not. If I had to do this kind of thing more often that once or twice a year I'd probably hacked together some Python code that uses the NetBox API to get the data in there. That said, I would be interested if that kind of templating would be of broader interest, so if anyone wants to chime in (or even contribute code :-)), I'm open for discussion! |
Beta Was this translation helpful? Give feedback.
-
Not really a sore spot, but something that needs sorting out in terms of it's support state by the NetBox project first ... I fell on my face a couple of times when I used unsupported stuff before, so I needed to be sure. The good news: We can do it. While it is not explicitly mentioned in the plugin developers guidelines, there is even an example where this is done in the plugin development tutorial, so ... looks good for this feature. |
Beta Was this translation helpful? Give feedback.
-
Hi all, is there an Update on the implementation of some kind of Documentation for Subdomains. |
Beta Was this translation helpful? Give feedback.
-
Hi @clarksten, this repository is dead as a doornail. Its new home is here. Background: Aurora Research Labs disappeared without a trace and left the repo and the PyPI project in limbo, so I had to fork and move to a new name. Regarding your question: Yes, it is still planned to implement domain delegation support. Some things (particularly work for other projects and some unforseen actions like the need to fork and relocacte this one) came in between, and RFC2317 is also still on the list - on the other hand RFC2317 and domain delegation have some overlap, so it might be done in one go. |
Beta Was this translation helpful? Give feedback.
-
There's a few different relationships between things which have records and record types which currently aren't elegantly expressible in netbox-dns.
I'm explicitly NOT going to touch the concept of relating records to devices, or ipam resources, as that's an entirely different can of worms, which, while important, will likely only complicate this discussion.
Exemplars which come to mind
Subdomains:
If I create the forward domain foo.baz in netbox-dns, and create another domain fuzz.foo.baz, there's no automagic way of expressing the relationship between them.
The process of creating fuzz's NS records, and branch record in zone foo.baz isn't hard to do manually.. so this isn't a HUGE problem, but it feels like it aughtnt be a manual process... also there's no relationship between them from netbox-dns's perspective... they're isolated creatures.
Devices with multiple addresses:
compendium
is an nfs server. He has an interface on every vlan which clients connect to for NFS services, to avoid passing the traffic thru the firewall needlessly.Any time I create a new isolation plane, I create a new face to the NFS server, and plumb it up to the newly minted isolation plane to facilitate isolated shared storage.
There's not currently a clean way other than tags to convey that these 'storage records' all relate to the same physical object.
My webservers each have a few different ip addresses for isolated services. There's currently not a good way aside from tags to relate them.
My docker hosts each have a 172.x.y.z/24 allocated to them for docker's use, each host's internal subnet relating to the physical host's main address's last octet... I'm not sure how best to describe the relationship between host-22.baz.com : 10.y.z.22 and 172.x.22.0/24
Devices with multiple names:
So... I'm human. I forget things. So I add a few records to make things easier... a contrived example:
a UPS: ups-01 (cnames: ups-1 ups01 ups1 )
a webserver: web-01 (cnames: web1 web_1 web-1)
now... these two different devices provide service to a few different namespaces.... and so they're represented in a few different domains...
so...
ups-01.core.local
ups-01.foo.baz
ups-01.sidehustle.whynot
web-01.foo.baz
web-01.otherservice.com
web-01.sidehustle.whynot
Having an elegant way of relating all of these different hats a device wears would make it a whole lot easier when I'm deprovisioning web94
which brings me to
Profiles
it feels like having a construct which allows one to create a template of related records, and be able to invoke that might be helpful?
it seems like a lot of the plumbing is there, just needs to be wired together elegantly..... what I have currently been doing is just importing a blob of csv that I templatized an mangled in a text editor, but that doesn't feel like it's the most elegant way, long term....
just some stuff I figured I'd toss up for contemplation
Beta Was this translation helpful? Give feedback.
All reactions