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

os-bind (1.33_1) - Dangling zone records left behind after zone deletion. #4567

Open
3 tasks done
RogerHall opened this issue Mar 1, 2025 · 0 comments
Open
3 tasks done

Comments

@RogerHall
Copy link

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

Describe the bug
Deleting a primary zone before deleting all records leaves the records behind. The records are not visible on the GUI. Adding the zone back does not reattach to the records. The records can be seen in the config.xml file or found with API calls.

To Reproduce

  1. Service --> BIND --> Configuration --> Primary Zone
  2. Note: Url for Step 1 = https://192.168.1.1/ui/bind/general/index#primary-domains
  3. Add Zone (In my test, this was first and only zone)
  4. Zone Name = opnsense.bug
  5. Save
  6. Add Record
  7. Name = zone-record-bug
  8. Value = 192.168.1.1
  9. Save
  10. Save
  11. Restart
  12. Delete Zone
  13. Yes (Remove Selected Item)
  14. Note: The record is still visible on GUI
  15. Save
  16. Lobby --> Dashboard
  17. Service --> BIND --> Configuration --> Primary Zone
  18. Note: No Zones or Records are visible on the GUI
  19. curl -k -s -u "$API_KEY":"$API_SECRET" 'https://127.0.0.1/api/bind/record/searchRecord' | jq | grep -B4 -A3 'zone-record-bug'
  20. This shows the record and also note that domain = ""
  21. grep zone-record-bug -B3 -A3 /conf/config.xml
  22. This shows the record and also note that domain = cbb1be0b-c585-49ca-b3a5-62aae2624803

Expected behavior
I would expect one of the following on order of preference

  1. Delete Zone could prompt for confirmation of deletion of both zone and associated records.
  2. Delete Zone could display error stating that records need to be deleted first

Screenshots

  • The following screenshot was taken after completion of step 18.

Image

Relevant log files
N.A.

Additional context
N.A.

Environment
OPNsense 25.1.1-amd64
hw.model: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
os-bind (installed), Version = 1.33_1

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

No branches or pull requests

1 participant