svn commit: r296190 - head/contrib/openresolv

Pedro Giffuni pfg at FreeBSD.org
Thu Mar 3 15:22:17 UTC 2016



On 03/03/16 09:38, Jean-Sébastien Pédron wrote:
> Hi!
>
>> +# Strip any trailing dot from each name as a FQDN does not belong
>> +# in resolv.conf(5)
>> +# If you think otherwise, capture a DNS trace and you'll see libc
>> +# will strip it regardless.
>> +# This also solves setting up duplicate zones in our subscribers.
>> +strip_trailing_dots()
>> +{
>> +	local n=
>> +
>> +	for n; do
>> +		printf "%s" "${n%.}"
>> +	done
>> +	printf "\n"
>> +}
>
> This specific change in openresolv removes all spaces separating names
> in the "search" or "domain" lines, because it doesn't print any
> whitespaces before/after stripped names.
>
> The result is:
> search domain1.tlddomain2.tlddomain3.tld
>
> It was fixed upstream:
>    http://roy.marples.name/projects/openresolv/info/1e6ac67eb3c586a5
>    http://roy.marples.name/projects/openresolv/ci/53416cf1b434dbc1?sbs=0
>
> However, it was not published in any release so far.
>
OK, I will bring it through the vendor area.

Thank you!

Pedro.


More information about the svn-src-head mailing list