svn commit: r296190 - head/contrib/openresolv

Jean-Sébastien Pédron jean-sebastien.pedron at dumbbell.fr
Thu Mar 3 14:38:23 UTC 2016


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.

-- 
Jean-Sébastien Pédron

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20160303/7fc43cf3/attachment.sig>


More information about the svn-src-head mailing list