Verified Commit 2a2be442 authored by Jan Pavlinec's avatar Jan Pavlinec
Browse files

Merge branch 'hotfix/unbound-max-neg-ttl' into develop

parents 4f4f6d83 863ed943
#
# Copyright (C) 2016-2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
# Copyright (C) 2016-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=resolver-conf
PKG_VERSION:=0.0.2
PKG_RELEASE:=12
PKG_RELEASE:=13
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
PKG_LICENSE:=GPL-3.0-or-later
......
......@@ -35,6 +35,7 @@ config resolver 'unbound'
option rrset_cache_slabs '1'
option infra_cache_slabs '1'
option infra_cache_numhosts '200'
option cache_max_negative_ttl '1000'
list access_control '0.0.0.0/0 allow'
list access_control '::0/0 allow'
option pidfile '/var/run/unbound.pid'
......
......@@ -35,6 +35,7 @@ config resolver 'unbound'
option rrset_cache_slabs '1'
option infra_cache_slabs '1'
option infra_cache_numhosts '200'
option cache_max_negative_ttl '1000'
list access_control '0.0.0.0/0 allow'
list access_control '::0/0 allow'
option pidfile '/var/run/unbound.pid'
......
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=unbound
PKG_VERSION:=1.13.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound/
......
......@@ -221,6 +221,10 @@ init_unbound() {
set_parameter rrset_cache_size rrset-cache-size 100k
set_parameter infra_cache_slabs infra-cache-slabs 1
set_parameter infra_cache_numhosts infra-cache-numhosts 200
# Related to issue https://gitlab.nic.cz/turris/os/packages/-/issues/748
set_parameter cache_max_negative_ttl cache-max-negative-ttl 1000
set_multiple_parameters access_control access-control
set_quoted_parameter username username "$USERNAME"
set_quoted_parameter pidfile pidfile "/var/run/unbound.pid"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment