Question about DNS server address definition

Paul Wouters paul at nohats.ca
Wed Aug 19 16:21:32 CEST 2015


On Wed, 19 Aug 2015, Rafael Santiago de Souza Netto via Unbound-users wrote:

> I'm new on libunbound. I tried to find in documentation  some info about
> how to specify the exact DNS server to be queried when ub_resolve() is
> called but I was not able to found anything related. Is there a way to
> do it?

ugh = ub_ctx_resolvconf(ctx, "/etc/resolv.conf");

You can use a tmp file and specify nameserver 1.2.3.4 in it.

There might be an easier way to do this, but we use the system's
nameserver as forwarder.

Paul



More information about the Unbound-users mailing list