mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-04 12:14:23 +08:00
Namecom punycode (#170)
* convert records to punycode before processing * make IDN CNAME target use a real IDN TLD
This commit is contained in:
parent
988d8d6bf8
commit
93764da4e3
2 changed files with 2 additions and 1 deletions
|
@ -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"),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue