Comment 15 for bug 1906970

Revision history for this message
Paride Legovini (paride) wrote : Re: dpkg hook hostname error

My understanding now is that the resolver *tolerates* search domains starting with a ".", stripping it off. This is very visible in the code snipped posted by Sergio:

 if (dname[0] == '.')
  dname++;

and this is the reason "search ." is not really documented: it's not really useful as in practice it is not different from having no search domain at all.

However, given that "search ." is for some reason not that rare, I think it makes sense to make the postfix postinst script tolerate it. The fix only requires a small change in a regexp.