peteeckel / netbox-plugin-dns

NetBox DNS is a NetBox plugin for managing DNS data.
https://pypi.org/project/netbox-plugin-dns
MIT License
191 stars 14 forks source link

Add Record Type Filter #109

Closed KPTheProf closed 8 months ago

KPTheProf commented 8 months ago

Is your feature request related to a problem? Please describe. I'm trying to find records of a particular type as TXT or SRV

Describe the solution you'd like Add a Type filter to the Records attribute filters tab.

Describe alternatives you've considered There doesn't appear to be any way to filter on just the record type.

Additional context Add any other context or screenshots about the feature request here.

Screenshot 2023-12-19 105116

peteeckel commented 8 months ago

Hi @KPTheProf, thanks for reporting this ... I would have sworn the type filter has been there for a long time, but in fact it isn't.

Might take a couple of days though as I'm currently quite busy.

KPTheProf commented 8 months ago

Thanks @peteeckel, it looks like it's just the web interface part that's missing If I put &type=TXT filter on the end, it will filter just the TXT records for that zone id.

http://127.0.0.1:8000/plugins/netbox-dns/records/?zone_id=24&type=TXT

Screenshot 2023-12-19 142843

peteeckel commented 8 months ago

That's what I suspected ... it's just missing from the filter view. Actually a trivial fix.

peteeckel commented 8 months ago

A bit embarrassing ... everything was in place, except the reference to the type filter in the fieldset ...