[prev in list] [next in list] [prev in thread] [next in thread] 

List:       unbound-users
Subject:    Re: Unbound Windows Config
From:       "W.C.A. Wijngaards via Unbound-users" <unbound-users () unbound ! net>
Date:       2016-07-21 7:07:02
Message-ID: 860b66f1-4694-5f00-1f25-ceb6ec260c1d () nlnetlabs ! nl
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Hi Riemann,

On 21/07/16 01:43, Riemann . via Unbound-users wrote:
> I'm trying to configure Unbound on Windows 7 to forward all requests
> from localhost like this:
> 
> requests for *.foo.bar => query 172.16.255.3:153 <http://172.16.255.3:153>
> all other requests => query 172.16.255.2
> 
> For the first part, this seems to work:
> 
> Set "Local Area Connection" IPv4 primary DNS to 127.0.0.1 and add this
> to service.conf:
> 
> server:
> do-not-query-localhost: no
> 
> forward-zone:
> name: "foo.bar"
> forward-addr: 172.16.255.3@153
> 
> But I want every other request to go to 172.16.255.2 (for example) and
> instead, it just dies. I've tried a second forward-zone with the name
> "." following the entry above, but it doesn't seem to work. I've
> completely disabled the Windows DNS service, in case it matters.

That is how it should work.  Append these config lines:
forward-zone:
name: "."
forward-addr: 172.16.255.2

And that should be all that is needed to do what you ask.
Perhaps you also need domain-insecure: "foo.bar"  ? (if you have DNSSEC
enabled)

Best regards, Wouter


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic