Discussion:
[Unbound-users] cachcing only server for all types of records
Christoph Kaminski
2015-06-12 07:04:08 UTC
Permalink
Hi All,

I need a caching only local dns, for ALL type of records (A/AAAA/CNAME/PTR
etc). Is this configuration what I need?

/etc/unbound/unbound.conf

server:
infra-cache-numhosts: 10000
do-ip4: yes
do-ip6: yes
do-udp: yes
do-tcp: yes
do-daemonize: yes
username: "unbound"
directory: "/etc/unbound"
use-syslog: yes
log-time-ascii: yes
prefetch: yes
prefetch-key: yes
rrset-roundrobin: yes
minimal-responses: yes

local-zone: "10.in-addr.arpa." nodefault
local-zone: "16.172.in-addr.arpa." nodefault
local-zone: "24.172.in-addr.arpa." nodefault
local-zone: "25.172.in-addr.arpa." nodefault
local-zone: "26.172.in-addr.arpa." nodefault
local-zone: "28.172.in-addr.arpa." nodefault
local-zone: "29.172.in-addr.arpa." nodefault
local-zone: "31.172.in-addr.arpa." nodefault
local-zone: "168.192.in-addr.arpa." nodefault

include: /etc/unbound/local.d/*.conf
include: /etc/unbound/conf.d/*.conf

/etc/unbound/conf.d/forward.conf

forward-zone:
name: "."
forward-addr: 172.16.16.10
forward-addr: 172.16.15.10
forward-addr: 172.16.8.10
forward-addr: 172.16.14.10

Greetz
Christoph Kaminski
W.C.A. Wijngaards
2015-06-22 09:51:30 UTC
Permalink
Hi Cristoph,
Post by Christoph Kaminski
Hi All,
I need a caching only local dns, for ALL type of records
(A/AAAA/CNAME/PTR etc). Is this configuration what I need?
Yes it seems to be what you want. It caches all types of responses
(it has a fairly small cache, a couple megabyte, the default for rr
and msg cache sizes), and it sends all upstream queries to a fixed
list of servers.

Best regards,
Wouter
Post by Christoph Kaminski
/etc/unbound/unbound.conf
"/etc/unbound" use-syslog: yes log-time-ascii: yes prefetch: yes
prefetch-key: yes rrset-roundrobin: yes minimal-responses: yes
"16.172.in-addr.arpa." nodefault local-zone: "24.172.in-addr.arpa."
"26.172.in-addr.arpa." nodefault local-zone: "28.172.in-addr.arpa."
"168.192.in-addr.arpa." nodefault
/etc/unbound/conf.d/*.conf
/etc/unbound/conf.d/forward.conf
172.16.15.10 forward-addr: 172.16.8.10 forward-addr: 172.16.14.10
Greetz Christoph Kaminski
_______________________________________________ Unbound-users
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
Christoph Kaminski
2015-07-01 17:39:11 UTC
Permalink
Post by W.C.A. Wijngaards
Hi Cristoph,
Post by Christoph Kaminski
Hi All,
I need a caching only local dns, for ALL type of records
(A/AAAA/CNAME/PTR etc). Is this configuration what I need?
Yes it seems to be what you want. It caches all types of responses
(it has a fairly small cache, a couple megabyte, the default for rr
and msg cache sizes), and it sends all upstream queries to a fixed
list of servers.
Best regards,
Wouter
ok thx for your answer... I have one question more. Sometimes I need to
restart unbound in order that it can resolve a new added DNS record. I
think the default cache times are to long for us. It is possible to make
them shorter? The best would be if it only uses the cache if it cant reach
any forwarder. Possible?

Greetz
Sven Ulland
2015-07-02 08:34:31 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...