Re: Openresolv bug ?
Tarjei Jensen
Sat Feb 10 07:35:50 2018
Thanks for the suggestion. I may have to do that.
The dhclient.leases file indicates that 192.168.10.1 is first in the list
of DNS servers. And there is only one lease.
option domain-name-servers 192.168.10.1,92.220.228.70,109.247.114.4;
I notice that the name servers in /etc/resolv.conf are listed in numerical
order. However, I found no sort in /sbin/resolvconf or in
/sbin/dhclient-script.
I also notice that the name resolver assumes that all DNS servers have the
same information. It stops trying to resolve names at the first server that
works. That is not the way I would have designed it.
Greetings,
On Sat, Feb 10, 2018 at 4:19 AM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> Hi
>
> On 09/02/2018 23:35, Tarjei Jensen wrote:
>
>> Hi,
>>
>> Raspbian uses Openresolv 3.8.0. I have encountered something I think is a
>> bug.
>>
>> In /etc/dhcp/dhclient.conf I have added the following line :
>> prepend domain-name-servers 192.168.10.1;
>>
>> However in /etc/resolv.conf that DNS server is at the end of the list of
>> DNS servers.
>>
>> Is this something that have been fixed in later versions of Openresolv?
>>
>
> dhclient will put that at the start of the resolv.conf it will supply to
> resolvconf.
> IF another interface gets the same DNS servers and misses out the prepend
> and passed that to resolvconf, yes this can occur.
>
> As you're using openresolv, and you want to prepend a nameserver, maybe
> you should consider adding this nameserver to resolvconf.conf? There's a
> man page for this.
>
> Roy
>
Archive administrator: postmaster@marples.name