One letter domain name

Discussion in 'General' started by ikrudolf, Mar 12, 2010.

  1. ikrudolf

    ikrudolf Member

    I'm trying to add a 1 letter domain name but I get an error, something like "invalid domain name". What can I do to get this domain added?

    The domain is like this: x.xx
     
    Last edited: Mar 12, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    As far as I know, all common regular expressions assume that a domain must have at least 2 chars. In which tld are one letter domain names allowed?
     
  3. stpq

    stpq New Member

    Hello!

    Im sorry for revival of ages old topic: I have the same problem, domain is "n.cz " Its registered in nineties.. Nad yes, i have encountered other forms, where i can not fill in my email due to short domain..
    ([wikipedia] /wiki/Single-letter_second-level_domain)
    thanks
     
    Last edited: Oct 27, 2016
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    There are no problems with short domain names in ISPConfig 3.1. see screenshot. I've added your domain and a mailbox for it on my test system.
     

    Attached Files:

  5. stpq

    stpq New Member

    aw yeah... i have an older version 3.0.5.4p6... Its a production environment, I'd appreciate if u could point me out to a piece of code I'd change, I don't really feel like update now. (new version looks neat though.)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the domain and email regex in the form files in /usr/local/ispconfig/interface/web/mail/form/
     
  7. stpq

    stpq New Member

    Thanks till!
    I will look into update later, ISPConfig is great!
     
  8. Erik T

    Erik T New Member

    I am running ISPConfig version 3.1.2 and I am having this issue when I try to add a website with the single letter domain i.e. Sites -> Websites -> Add new website.

    When i try to add the domain x.xx I get the error message "1. Domain name invalid.".

    I have tried looking for the regex inside:
    /usr/local/ispconfig/interface/web/sites/form

    But I have not yet found the regex. Could you please help point me in the right direction.

    Thanks in advance and I would also want to thank you for the awesome job with ISPConfig!
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    See /usr/local/ispconfig/interface/lib/classes/validate_domain.inc.php line 147
     
    Erik T likes this.
  10. Erik T

    Erik T New Member

    That did the trick, thank you!
     
  11. zyzzza

    zyzzza New Member

    Have same issue - one letter domain. Could you please remove this check from the code, as following the Wikipedia :

    Many other single-letter second-level domains have been registered under country code top-level domains. The list of Country code top-level domains which have been identified to allow single-letter domains are : .ac .af .ag .ai .am .bo .by .bz .cm .cn .co .cr .cz .cx .dj .de .dk .fm .gd .gg .gl .gp .gs .gt .gy .hn .ht .ie.[2] im .io .je .kg .ki .kw .la .lb .lc .ly .md .mg .mk .mp .ms .mw .mx .mu .nf .nz .pe .ph .pk .pl .pn .pr .pw .ro .sh .st .tc .tl .tt .to .tv .ua .ws .vc .vg .vn and .vu.

    Please take this in consideration,
    thank you.
     

Share This Page