I'm trying to use unbound to forward DNS queries to other recursive DNS server. My unbound.conf looks like:
forward-zone:
name: "."
forward-addr:x.x.x.x
forward-addr:x.x.x.x
forward-addr:x.x.x.x
But when I use the command
# unbound-control lookup google.com
The following name servers are used for lookup of google.com.
forwarding request:
Delegation with 0 names, of which 0 can be examined to query further addresses.
It provides 3 IP addresses.
x.x.x.x not in infra cache.
x.x.x.x not in infra cache.
x.x.x.x not in infra cache.
How to make unbound forward the DNS query to another recursive server that is defined in forward zone?
A forward-zone entry with name "." and a for-ward-addr target will forward all queries to that other server (unless it can answer from the cache).
Did you make sure that the cache was empty? – Andrew B Nov 24 '16 at 22:31