Article ID: 122172, created on Jun 25, 2014, last review on Jun 25, 2014

  • Applies to:
  • H-Sphere


H-sphere does not allow to use underscore "_" in CNAME records.


Underscore "_" in CNAME records is not allowed by default.


To change CNAME validator you should:
1) edit "s_hsphere.yafv" file (take a look at "vCustomCName)

    --regexp vCustomCName=    "[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)*",;
    ++regexp vCustomCName=    "[a-zA-Z0-9_]([a-zA-Z0-9\-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)*",;

2) recompile template by the following guide

     # su -l cpanel
     -bash-3.2$ /hsphere/local/home/cpanel/hsphere/WEB-INF/classes/shiva-templates/configure
     -bash-3.2$ cd /hsphere/local/home/cpanel/hsphere/WEB-INF/classes/shiva-templates
     -bash-3.2$ make

3) restart H-sphere service

    service httpdcp restart  

4) purge cache in browser.

Search Words

CP validation rejects Amazon AWS CNAMES records

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF