Feature Idea: Directly create PTR records from IPAM IP addresses #493
Replies: 6 comments 4 replies
-
@ObjectiveWriter thanks for raising this. The IPAM DNSsync feature does not directly create PTR records at all, it creates address (A/AAAA) records in forward zones. If a matching reverse zone is found, the PTR records are generated accordingly. I will update the documentation to clarify that. |
Beta Was this translation helpful? Give feedback.
-
In your example you'll just need to add the zone |
Beta Was this translation helpful? Give feedback.
-
This would be "unexpected" behavior. Because this means it cannot be used to automate reverse zone creation, if we do not also at the same time carry a forward zone. Meaning: A tenant gets a reverse dns/fqdn entry for an ip-address associated with their service. The corresponding "forward" entry is in their own external DNS zone. (not mapped in netbox) as the netbox operator has no control over the zone. (Or any small to medium sized DC, would have 100's of "client zones" they have no control over.) In this case (wich i suspect will be quite common) it becomes impossible to use the dns plugin to manage PTR records. Solution:
Instead of going only create a PTR if there is a matching A. On Update
|
Beta Was this translation helpful? Give feedback.
-
It is not unexpected as it is documented exactly that way. I see your use case, and I think it would be a possible addition to enable direct PTR creation from IPAM DNSsync, but it's just not the way it's implemented today. I fully agree that it's possible and that it makes sense, but it's definitely not a bug but an FR. |
Beta Was this translation helpful? Give feedback.
-
By the way, doing this is by no means trivial ... there are several situations that need to be considered:
All these cases need to be handled correctly (they are with forward zones in the play, but all of this functionality would need to be recreated for "pure" reverse zones, and tests need to be written for all these cases. So my estimate for the effort of implementing this is between two and four weeks. Of course, PRs are welcome :-) The documentation update will close this issue, but as it's an interesting point I will convert it to a discussion so we can collect some other users' opinions and ideas as well. |
Beta Was this translation helpful? Give feedback.
-
By the way, as a workaround you can create the required forward zones and define an active custom state for them so they don't get rolled out automatically. |
Beta Was this translation helpful? Give feedback.
-
Versions
NetBox Version: NetBox Community v4.1.7
NetBox DNS Version: 1.1.6
Python Version: 3.12.5
Unclear Documentation on how to configure reverse zones.
After following the documentation, it is unclear how to correctly configure a reverse zone within the plugin. FQDN/DNS Names from IPAM Records do not get converted to reverse zone entries when running rebuild_dnssync.
To Reproduce
Expected result
Reading the instructions suggests that rebuild_dnssync fetches the fqdn/hostname from the ip-address entry in netbox. then creates an entry in the reverse zone. This does not appear to be the case.
Actual result
Nothing happens.
additional notes
Adding the "optional fields" as suggested in the docs does not improve this.
Beta Was this translation helpful? Give feedback.
All reactions