1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Namecom punycode (#170)

* convert records to punycode before processing

* make IDN CNAME target use a real IDN TLD
This commit is contained in:
Pat Moroney
2017-08-05 09:08:22 -06:00
committed by Tom Limoncelli
parent 988d8d6bf8
commit 93764da4e3
2 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,7 @@ var tests = []*TestCase{
tc("Internationalized name", a("ööö", "1.2.3.4")), tc("Internationalized name", a("ööö", "1.2.3.4")),
tc("Change IDN", a("ööö", "2.2.2.2")), tc("Change IDN", a("ööö", "2.2.2.2")),
tc("Internationalized CNAME Target", cname("a", "ööö.com.")), tc("Internationalized CNAME Target", cname("a", "ööö.com.")),
tc("IDN CNAME AND Target", cname("öoö", "ööö.ööö.")), tc("IDN CNAME AND Target", cname("öoö", "ööö.企业.")),
//MX //MX
tc("Empty"), tc("Empty"),

View File

@ -19,6 +19,7 @@ var defaultNameservers = []*models.Nameserver{
} }
func (n *nameDotCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error) { func (n *nameDotCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error) {
dc.Punycode()
records, err := n.getRecords(dc.Name) records, err := n.getRecords(dc.Name)
if err != nil { if err != nil {
return nil, err return nil, err