Project

General

Profile

Actions

Bug #6583

closed

Unbound Query Logging

Added by Chris Kuethe almost 9 years ago. Updated almost 9 years ago.

Status:
Not a Bug
Priority:
Normal
Category:
DNS Resolver
Target version:
-
Start date:
07/07/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:
All

Description

It is not possible to configure query logging in the DNS Resolver UI page; adding "log-queries: yes" to the custom options field causes a syntax error in the generated config. Manually editing /var/unbound/unbound.conf to add that option works.

Tested on "2.3.1-RELEASE-p5 (amd64)", but it's likely that this issue is reproducible on all architectures.

Actions #1

Updated by Renato Botelho almost 9 years ago

  • Status changed from New to Feedback
  • Assignee set to Renato Botelho

I've added it to custom options without any problem. Make sure any extra char was not added by accident, check if unbound.conf looks OK after you click apply and if you find a way to reproduce it just let me know.

Following block was added to /var/unbound/unbound.conf:

# Unbound custom options
log-queries: yes

and queries were logged in /var/log/resolver.log:

Jul  7 10:48:11 test-ce-23-amd64 unbound: [5791:0] info: 127.0.0.1 pfsense.org. A IN
Jul  7 10:48:12 test-ce-23-amd64 unbound: [5791:0] info: 127.0.0.1 pfsense.org. AAAA IN
Jul  7 10:48:12 test-ce-23-amd64 unbound: [5791:0] info: 127.0.0.1 pfsense.org. MX IN
Actions #2

Updated by Jim Pingle almost 9 years ago

  • Status changed from Feedback to Not a Bug

Definitely works, no bug here.

Depending on your other selected options you may need to have a line before it for "server:" as documented here: https://doc.pfsense.org/index.php/Unbound_DNS_Resolver#Configuration

So try this:

server:
log-queries: yes
Actions #3

Updated by Chris Buechler almost 9 years ago

  • Target version changed from 2.3.1-p6 to 2.3.2
Actions #4

Updated by Chris Buechler almost 9 years ago

  • Target version deleted (2.3.2)
  • Affected Version deleted (2.3.1)
Actions

Also available in: Atom PDF