Skip to content

Resolve IDN domains#57

Open
GLobyNew wants to merge 1 commit into
retlehs:mainfrom
GLobyNew:fixIDN
Open

Resolve IDN domains#57
GLobyNew wants to merge 1 commit into
retlehs:mainfrom
GLobyNew:fixIDN

Conversation

@GLobyNew

Copy link
Copy Markdown
Contributor

Should fix #52

Two changes has been made:

  1. I moved domain normalizer to be in resolver package.
  2. And in the same resolver i've added IDNA profile, which has method to return ASCII version of domain.

Now if I run quien on IDN domain it should give proper information:

./quien dns zwick.ελ
{
  "A": [
    "216.198.79.1"
  ],
  "AAAA": null,
  "CNAME": null,
  "HTTPS": null,
  "MX": [
    {
      "Host": "spool.mail.gandi.net",
      "Priority": 10
    },
    {
      "Host": "fb.mail.gandi.net",
      "Priority": 50
    }
  ],
  "NS": [
    "ns-175-a.gandi.net",
    "ns-207-c.gandi.net",
    "ns-23-b.gandi.net"
  ],
  "TXT": [
    "v=spf1 include:_mailcust.gandi.net ?all"
  ],
  "PTR": null,
  "SOA": {
    "PrimaryNS": "ns1.gandi.net",
    "AdminEmail": "hostmaster@gandi.net",
    "Serial": 1781136000,
    "Refresh": 10800,
    "Retry": 3600,
    "Expire": 604800,
    "MinTTL": 10800
  },
  "DNSSEC": false
}

./quien dns моревдуше.рф
{
  "A": [
    "31.31.196.17"
  ],
  "AAAA": [
    "2a00:f940:2:2:1:1:0:256"
  ],
  "CNAME": null,
  "HTTPS": null,
  "MX": null,
  "NS": [
    "ns1.hosting.reg.ru",
    "ns2.hosting.reg.ru"
  ],
  "TXT": null,
  "PTR": [
    {
      "IP": "31.31.196.17",
      "Hostname": "server256.hosting.reg.ru"
    }
  ],
  "SOA": {
    "PrimaryNS": "server256.hosting.reg.ru",
    "AdminEmail": "support@reg.ru",
    "Serial": 2026021117,
    "Refresh": 10800,
    "Retry": 3600,
    "Expire": 604800,
    "MinTTL": 86400
  },
  "DNSSEC": false
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DNS failure with IDN domain name

1 participant