Bug 1922448
| Summary: | [RFE] Allow disabling unbound-anchor during startup | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Husam Ahmed Chaudhary <huchaudh> | |
| Component: | unbound | Assignee: | aegorenk | |
| Status: | CLOSED ERRATA | QA Contact: | FrantiĊĦek Hrdina <fhrdina> | |
| Severity: | low | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 8.3 | CC: | aegorenk, jorton, peter.vreman, rickatnight11, sbalasub | |
| Target Milestone: | rc | Keywords: | AutoVerified, FutureFeature, Triaged | |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | unbound-1.7.3-16.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1951923 (view as bug list) | Environment: | ||
| Last Closed: | 2021-11-09 18:05:30 UTC | Type: | Bug | |
| 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: | 1951923 | |||
|
Description
Husam Ahmed Chaudhary
2021-01-29 18:14:50 UTC
I ran into the same situation in an environment where DNSSEC is not supported, so `unbound.service` spends upwards of 20s on each start/restart unnecessarily running `unbound-anchor` while DNS requests are not served. The workaround I came up with is to just override the systemd unit to remove that `ExecStartPre` line. This can be done by setting the following in `/etc/systemd/system/unbound.service.d/override.conf`: ``` [Service] ExecStartPre= ExecStartPre=/usr/sbin/unbound-checkconf ``` ...then running `systemctl daemon-reload`. The second line blanks out the `ExecStartPre` directives set in the RPM-managed unit file, and the second line restores the config check that you DO still want to run. 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 (unbound 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/RHBA-2021:4194 |