Re: domain versus search keywords in resolvconf
Roy Marples
Tue Mar 10 11:04:25 2015
On 10/03/2015 09:25, Roy Marples wrote:
> There is an issue with this:
>
> $ cat /etc/resolvconf.conf
> resolv_conf=/tmp/res
>
> $ cat /etc/resolv.conf
>
> $ echo "domain foo" | sudo resolvconf -a foo
> $ echo "search bar" | sudo resolvconf -a bar
> $ printf "domain dead\nsearch beef\n" | sudo resolvconf -a dead.beef
> $ resolvconf -l
> # resolv.conf from bar
> search bar
>
> # resolv.conf from dead.beef
> domain dead
> search beef
>
> # resolv.conf from foo
> domain foo
>
> Everything is fine up to here:
>
> $ cat /tmp/res
> # Generated by resolvconf
> domain dead
> search bar beef foo
>
> As we can see, dead is not in the search list.
> This will be fixed. The correct output is this:
>
> $ cat /tmp/res
> # Generated by resolvconf
> domain dead
> search bar dead beef foo
Of course I am wrong. The output IS correct because the dead.beef entry
is faulty.
$ printf "domain dead\nsearch dead beef\n" | sudo resolvconf -a dead.beef
Is the correct entry to make and therefore it works fine.
Roy
Archive administrator: postmaster@marples.name