Replies: 2 comments 6 replies
-
|
@HB9HIL I seem to remember having had that discussion before ... You have a valid point, and I actually have an item on my to-do list that covers exactly that use case. Unfortunately the mechanism required to make that work is completely separate from the way DNSsync works at the moment, so it's not a trivial addition, and there are some other things that are further up the list (e.g. a completely different, but related plugin ... there's some pretty good stuff in the queue). In other words: It will eventually be implemented, but some patience is required ... until then, there is still the option of hacking something together with a custom script. This is actually much simpler than the general implementation in the plugin as I can't make assumptions about specific use cases and try to implement a general solution that works for everyone. An application-specific custom script (potentially triggered by create/updarte/delete object event hooks for IPAddress objects) wouldn't be too difficult to implement. For example code, you can look at A potential algorithm could look like this: Create:
Update:
Delete:
The general solution is more complex. It has to take into account that zones may change (e.g. the name of a PTR zone may be changed, which requires all PTR records to be re-evaluated, a new forward zone may be created that causes A records to be created for the IP addresses and the "standalone" PTR records to be deleted etc. - something you can take care for by just documenting "don't do that" :-) And that's exactly the reason why the general solution takes a bit longer to implement ... all the cases need corresponding tests too, documentation etc., so it's rather a work of some days, maybe weeks, than one of some hours. |
Beta Was this translation helpful? Give feedback.
-
|
Just found this discussion which goes kinda in the same direction: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I'm managing some public IPs in an ISP environment. We added all IP addresses in the various prefixes and used DNSsync of Netbox DNS to create the corresponding PTR records (by using the DNS Name Field in the IP Address). We imported the IP addresses by a script-generated CSV for generic PTR records.
Now there are customers who want to customize their PTR records for their own purposes. In 99% of the cases they want PTR records for domains, we are not authoritative for. This means I have to create the zone in Netbox DNS first in order to use the DNS Name field in the IP address.
Yeah sure I could (and we currently do) create the records manually. But then you don't see the records in the detail view of the IP address.
I searched throuh the documentation to find any option which could help me here, but wasn't lucky.
In fact I'm looking for one of the two options:
Currently the PTR records depends on the A record. If the zone in the A record does not exist, there won't be any PTR record, even if the Reverse Zone exists. This should be independent. The PTR record can exists even there is no A record. Or am I wrong here?
If I create an manual A or PTR record for an IP address which exists (without using the DNS Name field), It would be super handy if I can see those records in the IP address detail view which is currently not the case. It should be easily possible to check for records with the current IP address or records in a reverse zone (which exists).
Cheers from switzerland and thanks for this great plugin :)
PS: We are currently managing over 45 thousand records with this plugin.
Beta Was this translation helpful? Give feedback.
All reactions