Setting nameserver regardless /etc/resolv.conf

Iñaki Baz Castillo ibc at aliax.net
Fri Apr 8 15:28:50 MSD 2011


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?

-- 
Iñaki Baz Castillo
<ibc at aliax.net>


More information about the udns mailing list