This is incorrect behavior and will result in the first search and first options from being ignored. That is, in the above case, the internal.domain.edu domain will not be searched.
Rather, according to resolv.conf(5) man page, the produced file should be:
Affected Puppet, Ruby, OS and module versions/distributions
Problem description
Problem affects any users of
system::network::dns:
withsearch
oroptions
.The template is incorrect and produces bad results. The results of the following hiera:
produces the following resolv.conf, which is incorrect format of a resolv.conf:
This is incorrect behavior and will result in the first
search
and firstoptions
from being ignored. That is, in the above case, theinternal.domain.edu
domain will not be searched.Rather, according to
resolv.conf(5)
man page, the produced file should be: