Bug 1850460

Summary: Enable additional logging in unbound in RHEL8
Product: Red Hat Enterprise Linux 8 Reporter: Apurbita Mukherjee <apmukher>
Component: unboundAssignee: aegorenk
Status: CLOSED ERRATA QA Contact: Ondrej Mejzlik <omejzlik>
Severity: medium Docs Contact: Prerana Sharma <presharm>
Priority: medium    
Version: 8.2CC: aegorenk, jorton, omejzlik, presharm, psklenar, weden
Target Milestone: rcKeywords: FutureFeature, Patch, TestCaseProvided, Triaged, Upstream
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
.`unbound` configuration now provides enhanced logging output With this enhancement, the following three options have been added to the `unbound` configuration: * `log-servfail` enables log lines that explain the reason for the `SERVFAIL` error code to clients. * `log-local-actions` enables logging of all local zone actions. * `log-tag-queryreply` enables tagging of log queries and log replies in the log file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:50:37 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1771008, 1894575    

Description Apurbita Mukherjee 2020-06-24 11:16:13 UTC
Description of problem:
To provide additional more logging capability in unbound package in RHEL8
1.7.3 is a 2018 release they are all the way up to 1.10
There are new options in there that may be helpful for logging and DNS security.


        # Prints  the  word  'query'  and  'reply'  with  log-queries  and
        # log-replies.   This makes filtering logs easier.  The default is
        #      off
        log-tag-queryreply: yes

        # Print log lines to inform about local zone actions.
        log-local-actions: yes

        # Print log lines that say why queries return SERVFAIL to clients.
        log-servfail: yes


Version-Release number of selected component (if applicable):
Unbound 1.7.3

How reproducible:
Always

Steps to Reproduce:
1. If querying the host
host -v example.com 10.xxx.xxx.x

2. The response/answer are not being logged in the log file.

Actual results:
The response/answer are not being logged in the log file.

Expected results:
Answer section to be logged in log file.

Comment 19 errata-xmlrpc 2021-05-18 15:50:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: unbound security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1853