Skip to content

Feature request: Display block reason for blocked queries in the web interface #141

Description

@gtech-pedrol

Feature request

Description

When query logging is enabled in modDNS, the web interface currently shows that a query was blocked, but it does not show the reason for the block.

At the moment, I have to export the full JSON log data and inspect it manually to understand why a query was blocked. This makes troubleshooting slower and more cumbersome than it needs to be.

This is especially inconvenient when trying to determine whether a query was blocked by a specific blocklist, a custom deny rule, a security rule, or another filtering source.

Describe the solution you'd like

When query logging is enabled, I would like the web interface to display the reason why a query was blocked directly in the query log view.

For example, for blocked entries, it would be helpful to show:

  • which blocklist triggered the block
  • whether it was blocked by a custom deny rule
  • whether it was blocked by a security-related rule
  • any other available block source / reason already present in the logged data

This could be shown as:

  • a dedicated "Block reason" column
  • a tooltip
  • an expandable details view
  • or any similar UI element

The main goal is to make the reason visible in the web interface without requiring a manual JSON export and analysis.

Describe alternatives you've considered

The current workaround is to export the full JSON logs and inspect them manually.

While this works, it is not convenient for normal troubleshooting and makes it harder to quickly understand why a domain was blocked.

Another partial workaround would be to temporarily disable blocklists or rules one by one, but that is inefficient and not practical when multiple filters are active.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions