Maintained by: NLnet Labs

[Unbound-users] cachcing only server for all types of records

Christoph Kaminski
Fri Jun 12 09:04:08 CEST 2015


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20150612/05deb1b0/attachment.html>