PTR records not created with "ipam-coupling" enabled. #140
-
I'm having an issue where I'm not seeing the PTR records created when using the "ipam-coupling"; I do have the reverse zones defined and they do show up fine when I create the A record manually. Not sure exactly what's up and was curious if others have seem something similar? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 6 replies
-
The fact that the plugin automatically creates the PTR record is very helpful, as I use that data to feed that into my BIND9 configuration file. I'm new to DNS and crafting these reverse zone entries by hand was very error prone! |
Beta Was this translation helpful? Give feedback.
-
That's a bit difficult to analyse as, to use the dreaded phrase, "it works for me" ... Did you by any chance check the "Disable PTR" boolean custom field for the IP address? |
Beta Was this translation helpful? Give feedback.
-
Just to make sure I tested this manually (finding #141 in the process, thanks for making me stumble into this :-)) I can confirm that with NetBox 3.7.0 and NetBox DNS 0.21.15 PTR records are created automatically unless explicitly disabled, provided the PTR zone is available. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Found the BUG :) I have a status of "reserved" for the IP Address. As soon as I set it to "active" the ptr record was created! ![]() |
Beta Was this translation helpful? Give feedback.
-
I'm leaning more towards this is a bug after thinking on this more. The reason I state this is because the PTR record was created for my A record when I did it via GUI......even though the address was "reserved" and NOT in the active state. Anyway, I have a special knack for finding things like this, haha......If anyone ever wants to test their plugins they just need to send it my way because I'm sure to turn a knob nobody else thought to ;) |
Beta Was this translation helpful? Give feedback.
-
... on the other hand ... While I still find the idea of not using the status 'Active' for active IP addresses somewhat disturbing, there is something important to take home from this discussion. The mapping 'IP Address active -> DNS Record active, else inactive' is actually too unflexible. First, there are the 'DHCP' and 'SLAAC' statuses that need to be handled as active as well. Whether or not they should create active DNS records may vary, though. Second, NetBox makes it possible to extend the selection list for the IP address status field, and any new status defined that way may or may not require an active DNS record. Currently any new status defined there will result in inactive DNS records. So I just added FR #144 and PR #143, and released version 0.21.16 that contains the new feature. In your case, the following configuration should be added to
This will result in the |
Beta Was this translation helpful? Give feedback.
-
Just wanted to say thank you for the latest update! We are using DHCP heavily in our lab and will be creating DNS entries for all these systems using your plugin :) |
Beta Was this translation helpful? Give feedback.
Found the BUG :)
I have a status of "reserved" for the IP Address. As soon as I set it to "active" the ptr record was created!