Article ID: 129776, created on Nov 1, 2016, last review on Nov 1, 2016

  • Applies to:
  • H-Sphere 3.6.3

Symptoms

CNAME records that contain underscore symbol "_" cannot be added via CP.

Cause

That is default H-Sphere behaviour.

Resolution

  1. Create a backup copy of /hsphere/local/home/cpanel/hsphere/WEB-INF/classes/shiva-templates/common/submit/s_hsphere.yafv

  2. Change the template:

    #vim "/hsphere/local/home/cpanel/hsphere/WEB-INF/classes/shiva-templates/common/submit/s_hsphere.yafv"
    
    --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])?)*", fail=yafv.vCustomCName.fail;
    ++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_])?)*", fail=yafv.vCustomCName.fail;
    
  3. Recompile the template:

    # 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
    
  4. Restart the CP.

    # service httpdcp restart
    
  5. Clear your browser cache.

6b908665c0d1eca5bdd0141a32fd712a 6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008

Email subscription for changes to this article
Save as PDF