From 93764da4e3b39653ba2a20dfb2026c69ba1c1f2d Mon Sep 17 00:00:00 2001 From: Pat Moroney Date: Sat, 5 Aug 2017 09:08:22 -0600 Subject: [PATCH] Namecom punycode (#170) * convert records to punycode before processing * make IDN CNAME target use a real IDN TLD --- integrationTest/integration_test.go | 2 +- providers/namedotcom/records.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index f27f03bc4..94ffaaff2 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -301,7 +301,7 @@ var tests = []*TestCase{ tc("Internationalized name", a("ööö", "1.2.3.4")), tc("Change IDN", a("ööö", "2.2.2.2")), tc("Internationalized CNAME Target", cname("a", "ööö.com.")), - tc("IDN CNAME AND Target", cname("öoö", "ööö.ööö.")), + tc("IDN CNAME AND Target", cname("öoö", "ööö.企业.")), //MX tc("Empty"), diff --git a/providers/namedotcom/records.go b/providers/namedotcom/records.go index 9507d6032..c61ca9498 100644 --- a/providers/namedotcom/records.go +++ b/providers/namedotcom/records.go @@ -19,6 +19,7 @@ var defaultNameservers = []*models.Nameserver{ } func (n *nameDotCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error) { + dc.Punycode() records, err := n.getRecords(dc.Name) if err != nil { return nil, err