Skip to content

User-facing diagnostic tools such as resolvectl should accept IDN #10737

Closed

Description

@samueltardieu

systemd version the issue has been seen with

2.39

Used distribution

ArchLinux.

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.

Activity

  1. 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
  2. added
    RFE 🎁
    on Nov 12, 2018
  3. poettering commented on Aug 17, 2020

    @poettering
    Member

    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

  4. TriMoon commented on Aug 17, 2020

    @TriMoon

    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. 😉

  5. poettering commented on Feb 17, 2021

    @poettering
    Member

    Fixed by #18606

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁resolve

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions