Setting nameserver regardless /etc/resolv.conf
Iñaki Baz Castillo
ibc at aliax.net
Thu Apr 14 15:34:48 MSD 2011
2011/4/8 Iñaki Baz Castillo <ibc at aliax.net>:
> Hi, my /etc/resolv.conf has:
>
> nameserver 8.8.8.8
> nameserver 8.8.4.4
>
> But I want that my C program using udns just uses 127.0.0.1 (in which
> Unbound listens) as nameserver.
>
> I expected that setting enviroment variable NAMESERVERS=127.0.0.1
> before running my program would do the work, but it still uses
> 8.8.8.8. The only way to make it working seems to be adding 127.0.0.1
> as the first option in resolv.conf.
>
> Do I miss something?
Any help with this please? :)
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the udns
mailing list