Skip to content

KEA not respecting DNS changes in subnet #7181

Description

@Foowy

Important notices

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

Describe the bug

When setting custom dns servers in dns field, kea is set to gateway address when "Auto collect option data" is enabled. Un-setting "Auto collect option data" and reloading custom DNS servers corrects the GUI to show custom dns server addresses, but leases are still being handed out original gateway address for dns.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Services > Kea DHCP [new] > Kea DHCPv4
  2. Click on Subnets
  3. Create subnet with option Auto collect option data enabled
  4. Enter custom DNS servers that firewall is not using
  5. From device refresh interface/reconnect/renew IP
  6. Assigned DNS from DHCP will be that of the firewall
  7. Disable Auto collect option data
  8. Correct DNS server ip's in subnet
  9. From device refresh interface/reconnect/renew IP
  10. Assigned DNS from DHCP will still be that of the gateway and not of manually set dns addresses

Expected behavior

Disabling Auto collect option data should cause kea to use custom values entered into dns field

Describe alternatives you considered

Deleting and re-creating subnet at this time without "Auto collect option data" being enabled properly respects manually entered DNS addresses for client DHCP

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 24.1-amd64
Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (2 cores, 4 threads)
Using Unbound for gateway/firewall dns

*Edit

Words are hard and proper sentence structure is harder

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportCommunity support or awaiting triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions