Replies: 1 comment 2 replies
-
I don't think a pull request that does that will be accepted. That field is supposed to record the primary DNS name associated with this IP address (i.e. that name resolves to this address, and that address resolves to this name), and you can't use a wildcard for that. I believe there are plugins available to Netbox for doing more general DNS management, which I expect would let you create arbitrary DNS resource records. There's netbox-dns: I've not tried it myself, but it was listed in the 2022 community survey. Migrations are used when you're changing the database schema. In the example you showed there, it was to add a column to a table. Alternatively, you can add a Custom Field to the IP Address object, and use whatever regex you like to validate it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
like in this commit 95edec5
I want to update the DNSValidator regex and create a pull request. A * needs to be added, to allow wildcard domains.
Do I also have to create a migration file like in the mentioned commit? I have zero experience with that.
Beta Was this translation helpful? Give feedback.
All reactions