]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-dns-domain.c
resolved: allow resolution of names which libidn2 considers invalid (#6315)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Jul 2017 08:42:21 +0000 (04:42 -0400)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Jul 2017 08:42:21 +0000 (10:42 +0200)
commitad1f3fe6a816ddd7c2e80f4639825e88d93b5a98
treea91f5615184170b98bd6365e81074b224db1fc9a
parente3e42fc2b52dbd284a56457269ca920d6ab46295
resolved: allow resolution of names which libidn2 considers invalid (#6315)

https://tools.ietf.org/html/rfc5891#section-4.2.3.1 says that
> The Unicode string MUST NOT contain "--" (two consecutive hyphens) in the third
> and fourth character positions and MUST NOT start or end with a "-" (hyphen).
This means that libidn2 refuses to encode such names.
Let's just resolve them without trying to use IDN.
src/resolve/resolved-bus.c
src/resolve/resolved-dns-question.c
src/shared/dns-domain.c
src/test/test-dns-domain.c