opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.3k stars 734 forks source link

When adding a DHCP static reservation in Kia the DNS service needs restarting/reloading #7937

Open simonmcnair opened 2 days ago

simonmcnair commented 2 days ago

Important notices

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

Describe the bug When I added a DHCP reservation I found I couldn't ping the client. It appears as if a reload/restart of unbound dns was required.

To Reproduce

Steps to reproduce the behavior: 1.) add dhcp reservation in Kia 2.) try to ping host via DNS 3.) host times out

Expected behavior

1.) add dhcp reservation in Kia 2.) try to ping host via DNS 3.) host responds

Describe alternatives you considered

A clear and concise description of any alternative solutions or workaround you considered.

Screenshots

If applicable, add screenshots to help explain your problem.

Relevant log files

If applicable, information from log files supporting your claim.

Additional context

Add any other context about the problem here.

Environment

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

OPNsense 23.7.8 (amd64). Intel® Xeon™ E3-1225V5 3.3Ghz Quad Core Network Intel® I210-AT

fichtner commented 2 days ago

Working as discussed/intended.

simonmcnair commented 2 days ago

Surely if you add a lease and it doesn't work it isn't as intended ? If you need to restart DNS, it should tell you at least ?

fichtner commented 2 days ago

Docs PR is welcome. Behaviour for static DHCP leases to DNS services is consistent across the software. Since the two services do not belong together no restart is forced for the other.