Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    2

    Question Problem setting hostname to test.1234.com (numeric second-level)

    Hello, world! I'm still fairly new to cPanel and completely new to WHM... and loving it. I've been able to figure out a lot, but I could use some help with this one.

    My main domain is let's say 1234.com, second level of the domain is completely numerical. Server name test.1234.com. I can set this w/ no problem under Server Configuration > Basic cPanel/WHM Setup, but under Networking Setup > Change Hostname, I get:

    Changing Hostname......Done
    test.1234.com is not a valid hostname
    Please refer to RFC 952 to determine valid hostname.
    I tested w/ some other domains, and it rejects any that contain an all-numeric second-level. Something like test.1234a.com works just fine.

    I asked my host about it, and they replied:

    I've found that cPanel doesn't like numbers in the hostname for some reason so it will kick it out (even though it works). Follow these steps if you wish to use a hostname with numbers.

    a) Log into WHM and goto "Basic cPanel/WHM Setup" and change the hostname.
    b) Log into the server via SSH and become the root user "sudo su -"
    c) vi /etc/sysconfig/network (change entry in there, exit and save the file)
    d) vi /etc/hosts (change entry in there, exit and save the file)
    e) Run /scripts/upcp to update cpanel
    This seems to work great. The only problem was the license going bad, so I ran /usr/local/cpanel/cpkeyclt, fixed.

    Does anyone have anything to add to my host's advice, or does that sound like the complete solution to manually hack it in?

    And, is the rejection by WHM possibly a bug? When it first happened, I was like ? It's been my main domain since 2002 or so...

    Thanks for your time!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2006
    Location
    Virginia Beach, VA
    Posts
    254
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Your host pretty much has it right. If you feel this needs to be changed, you should submit a bug report to cPanel.

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    2

    Default

    Thanks very much, Vanessa.

    I reported it, and was quickly helped by Josh, who confirmed it and passed it along to the developers. Awesome.

    Oh, and nice site BTW.

Similar Threads & Tags
Similar threads

  1. Hostname for WHM installation with no top-level domain
    By m.petersen68 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-30-2010, 05:22 AM
  2. Problem to send email - numeric domain name
    By wgalafassijr in forum E-mail Discussions
    Replies: 1
    Last Post: 10-21-2009, 03:16 PM
  3. Setting up hostname?
    By Gtube in forum New User Questions
    Replies: 0
    Last Post: 12-14-2008, 03:06 AM
  4. Having problems setting up Hostname and DNS server
    By ToastyHost in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-11-2008, 11:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube