Kea DHCP Not honoring the order of the list of DNS ip's that shuld be provided to DHCP Clients #8421
Open
2 tasks done
Labels
support
Community support
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
When Kea DHCP is configured to serve a list of DNS IP's (primary & fallback) instead of just a single IP the order in which the ip's are entered is not honored. Instead the IPs are sorted in ascending order.
Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
To Reproduce
Therefore it becomes impossible to configure dhcp to serve a configuration where a dns in the lan is the main one and have unbound be the backup one.
Expected behavior
The order of the list of ip's to be served as DNS should be honored as entered. They should not be reordered.
Describe alternatives you considered
For the time beign I'm stuck with giving the DHCP clients just one DNS (the pihole) and keeping manual configuration for the ones where I cannot risc lack of service if pihole is inavailable.
Screenshots
I believe it's not necessary with the explanations given, but if you think it can be of use I'll provide them
Relevant log files
Not applicable.
Additional context
The issue can be reproduced at will. It's not transient.
Also, I guess this effect can be due to the GUI collecting the info and reordering it before passing it for saving...but of course it's only a guess, it may as well bee how kea stores or retrieves it.
Environment
OPNsense 25.1.2 (amd64)
Intel® I7-1355U
Network Intel® I226-V
Thank you a lot for helping.
The text was updated successfully, but these errors were encountered: