Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unbound 1.19.0_1 - Add OPNsense GUI menu item to display dhcpleases.conf & host_entries.conf in a table #7209

Closed
2 tasks done
phaze75 opened this issue Feb 7, 2024 · 4 comments
Labels
support Community support

Comments

@phaze75
Copy link

phaze75 commented Feb 7, 2024

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

I just tried out the new Kea DHCP service and wanted to check if the DHCP leases and host entries are correctly added and maintained in Unbound. But I realized that there is still no way to check Unbound's config files /var/unbound/dhcpleases.conf and /var/unbound/host_entries.conf via the OPNsense GUI. It is still necessary to open the console via SSH and access the files there.

Describe the solution you like

Could we please get an additional GUI menu item under "/Services/Unbound DNS" where the current host entries and DHCP leases (static and dynamic) are displayed in a table? What is the point of being able to configure Unbound in the GUI and not being able to list its "resulting" DNS records that are currently being served to the network? This is a fundamental feature.

Describe alternatives you considered

The only alternative is to continue to review Unbound DNS's records via the console.

Additional context

https://forum.opnsense.org/index.php?topic=38663.0
https://forum.opnsense.org/index.php?topic=31871.0

@phaze75 phaze75 changed the title unbound 1.19.0_1 - Add OPNsense GUI menu item to list dhcpleases.conf & host_entries.conf in a table unbound 1.19.0_1 - Add OPNsense GUI menu item to display dhcpleases.conf & host_entries.conf in a table Feb 7, 2024
@AdSchellevis
Copy link
Member

I just tried out the new Kea DHCP service and wanted to check if the DHCP leases and host entries are correctly added and maintained in Unbound.

They will not, given how this currently works with isc-dhcpd it's the question if we would like to support a feature like that at all. Service coupling isn't great.

But I realized that there is still no way to check Unbound's config files /var/unbound/dhcpleases.conf and /var/unbound/host_entries.conf via the OPNsense GUI. It is still necessary to open the console via SSH and access the files there.

Same as with every other config file.... you can always access them from a console as it's an open system, no need to treat these differently. Both are "downstream" files, which unfortunately do contain a bit more logic than needed, but not different than advertised in the gui when it comes to host_entries:

function unbound_add_host_entries($ifconfig_details)

DHCP leasesare me or less a tail on the same file the isc leases are showing:

parser.add_argument('--target', help='target config file, used when unbound restarts',

Adding a note to the help text for unbound and dnsmasq would be fine.

@phaze75
Copy link
Author

phaze75 commented Feb 7, 2024

Well, "being able to access every file via console in an open system" is - sorry to say so - a killer argument. Then why bother to provide a GUI at all?

To list/display a consolidated DNS zone, especially if it is pieced together from multiple sources, is a very common use case if troubleshooting DNS resolution issues. Wouldn't you say so?

But let me give you another use case. What if OPNsense Unbound DNS is not used as a primary, but as a backup DNS server? After a zone transfer, I would also like to check if the zone transfer has been completed successfully. How do I do that? By looking at the zone (files) if the zone data presented to the network is identical. The only thing I ask for is the comfort of a consolidated view in the GUI rather than opening a console and to "cat" each of the files manually...

@AdSchellevis
Copy link
Member

I don't think any of these files have anything todo with zone transfers, but parsing configuration data back to the gui is not a pattern being supported by any of our modules and doesn't need to reflect the actual state of the daemon in question (certainly not for a complicated component as dns, which has multiple sources feeding it).

@phaze75
Copy link
Author

phaze75 commented Feb 7, 2024

I think we are talking cross-purposes here. Anyway, I leave it and cancel my request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

2 participants