You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
User-facing diagnostic tools such as resolvectl should accept IDN #10737
Expected behaviour you didn't see / Unexpected behaviour you saw
resolvectl does not translate internationalized domain names (while dig does).
$ resolvectl query -t soa مليسيا
مليسيا: resolve call failed: All attempts to contact name servers or networks failed
$ dig مليسيا soa +short
a.mynic.net.my. hostmaster.mynic.net.my. 2018074874 1800 1800 604800 86400
Note that using the IDNA-encoded domain name works:
$ resolvectl query -t soa xn--mgbx4cd0ab
xn--mgbx4cd0ab IN SOA a.mynic.net.my hostmaster.mynic.net.my 2018074874 1800 1800 604800 86400
-- Information acquired via protocol DNS in 252.1ms.
-- Data is authenticated: no
Proposed resolution
Accept IDN as input in user-facing tools such as resolvectl and IDNA-encode such domain names as needed.
changed the title [-]User-facing diagnostic tools such as resolvectl should accept IDNA[/-][+]User-facing diagnostic tools such as resolvectl should accept IDN[/+]on Nov 12, 2018
Note that we actually do IDNA encoding, but only if you ask for hostnames, i.e. without the -t switch.
When you ask for raw RRs we do not do IDNA encoding
Then that's what needs changing because asking for specific RRs should be separate logic from the actual hostname those RRs are asked for.
iow: Always use IDN when the hostname provided needs it. 😉
Activity
[-]User-facing diagnostic tools such as resolvectl should accept IDNA[/-][+]User-facing diagnostic tools such as resolvectl should accept IDN[/+]poettering commentedon Aug 17, 2020
Note that we actually do IDNA encoding, but only if you ask for hostnames, i.e. without the
-tswitch.When you ask for raw RRs we do not do IDNA encoding
TriMoon commentedon Aug 17, 2020
Then that's what needs changing because asking for specific RRs should be separate logic from the actual hostname those RRs are asked for.
iow: Always use IDN when the hostname provided needs it. 😉
resolvectl: clarify IDNA and search path logic in combination with "r…
resolvectl: clarify IDNA and search path logic in combination with "r…
resolvectl: clarify IDNA and search path logic in combination with "r…
poettering commentedon Feb 17, 2021
Fixed by #18606