[PATCH] resolv: Avoid duplicate query if search list contains '.' (option 2)
Carlos Peon Costa
carlospeon@gmail.com
Fri Jan 9 10:22:54 GMT 2026
On Fri, Jan 9, 2026 at 10:29 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> What is the intended behavior if "." is present in the search list?
>
> I think it would be useful to change
>
> domain .
>
> and
>
> domain example.com
> search .
>
> to disable search list processing. Is this what other stub resolvers
> are already doing?
>
Setting the legacy "domain" option adds the specified domain to the
search list, so to disable search list processing IMO the only
configuration option needed is
search .
To be honest I don't know what other stub resolvers are already doing.
I'm trying to address the case where the same query is performed
twice, once "as_is" and another one appending then "." domain that
effectively does not modify the original query.
Regards,
Carlos.
More information about the Libc-alpha
mailing list