Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2016 15:38:15 +0100
From:      =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <jean-sebastien.pedron@dumbbell.fr>
To:        svn-src-head@freebsd.org
Cc:        "Pedro F. Giffuni" <pfg@FreeBSD.org>
Subject:   Re: svn commit: r296190 - head/contrib/openresolv
Message-ID:  <56D84C57.60101@dumbbell.fr>
In-Reply-To: <201602291446.u1TEkdL9079747@repo.freebsd.org>
References:  <201602291446.u1TEkdL9079747@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--nSrWTdtMPxIT74HDa7aq0DVu0gBo0qlQd
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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=3D
> +
> +	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=3D0=


However, it was not published in any release so far.

--=20
Jean-S=C3=A9bastien P=C3=A9dron


--nSrWTdtMPxIT74HDa7aq0DVu0gBo0qlQd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJW2ExcXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NzA4N0ZEMUFFQUUwRTEyREJDNkE2RjAz
OUU5OTc2MUE1RkQ5NENDAAoJEDnpl2Gl/ZTMjTQP/04vs4zEnfa650n6POfg2CTV
TpigxXjhrHBZg3lubIycwBggg14Hwuu4UBtfLLgJP+sU8CgJ+63Z9We1FdruOMAB
hevrH561bzJMWe7nxy+BpA/N+B9RqnZqe5tjcSQ9MmM6EJ9vAoXAur8tskXS4Vy5
XACr5X0eN+CeRoAk/FbArp5miqgTR1AM0jVsfpZtfwY3MHhiYIrpV0ns2geTXTMg
erExwVEgjdrzPakU1to2aidpd/t0eaYsOLtIh3WOVRiyIrfcLhfzUvoWl54IcRhV
HROJZrypAQ3iZhR+uWUnD2+38FvwbrQZzY6CbaYjrAuqwWEr3CfoZenH/+nqs7l6
JmsagJ9xt6R7Ww7WqUn2Z3z3gmDplRPuIX6FSu85CUeMK2SJ9XB8KeRPtleh/zOF
m2cz7AGKUqUek/L5Kw/54aCf1mvToHyTxIuGGJ9h+DSKWDJFr/swyFbMYNPUX6/S
AgHeuPf7rpL7WsW+2uvBcVXCTtaQEzMsiPgrZsY9qKnaFeENIimCcAyJPRn/FAG6
g4E+d3Znx9DV0VVqn8hJWldPBilM6bWF/N+8yGSnJxnzN/WPzWT833Plx0Rk3jAH
MtZAqgcHL8Me7yI8XZ5oIVFwXC8IPn3dktt9Zs59gCrpuvsHSL9nhazeSvbU3rsh
w8xV6Xn4va2CTk6CLP5J
=sDK6
-----END PGP SIGNATURE-----

--nSrWTdtMPxIT74HDa7aq0DVu0gBo0qlQd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56D84C57.60101>