ispCP - Board - Support
Problem to add the domain in .рф zone - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Problem to add the domain in .рф zone (/thread-12121.html)



Problem to add the domain in .рф zone - itfn - 11-12-2010 09:57 PM

Problem: I Try to add the domain домен.рф but it gives an error: Wrong Top Level Domain syntax: рф!
This TLD is valid in the IANA Root Zone Database http://data.iana.org/TLD/tlds-alpha-by-domain.txt as XN—P1AI
How can I fix it?


RE: Problem to add the domain in .рф zone - worm - 11-13-2010 12:48 AM

Disable TLD.

1) nano /var/www/ispcp/gui/include/input-checks.php
2) comment on the expression «/*_validates_tld($matches[3]))*/»
3) saved and added aliases without checking TLD =)

Successful administration!


RE: Problem to add the domain in .рф zone - itfn - 11-13-2010 10:57 AM

Yes, it's working, but I solve it another way :
In /var/www/ispcp/gui/include/input-checks.php search for function
_validates_tld($tld) and add to $pattern line with .рф zone

PHP Code:
$pattern =
      
'@^(?:
           (?:a[cdefgilmnoqrstuwxz]|aero|asia)|
              ...
              ...
              рф|  
              ...
              ([a-z]|[a-z]{7,})
       )$@ix'




RE: Problem to add the domain in .рф zone - worm - 11-15-2010 12:31 AM

Excellent! Of course this solution is better!