Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Unhappy Help! Hostname problem!

    Invalid Hostname. (tagging.number1host.net ). Hostnames may not contains spaces or tabs.
    WHM is telling me that! I am trying to change it, but it won't let me, it just keeps saying that!

    Help!

  2. #2
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    Hello,

    what does

    # hostname

    show?

    If you want to make sure the hostname is set correctly, these are the commands and files you need

    # hostname your.host.com

    Then edit the following , to make sure they are correct.

    /etc/sysconfig/network

    /etc/hosts

    /etc/resolv.conf

    /var/named/your.dns.zone.com.db (add A record for host)

    /usr/local/apache/conf/httpd.conf

    Restart services such as mail and apache if you change the hostname.

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Actually, if that is properly quoted, it looks like you have a space at the end of your hostname.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    DigitalN,

    Would you normally recommend a reboot as well? I usually tend to simply because you are changing the network characteristics of the server. Or, at leaset a restart if /etc/init.d/network?
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    Chirpy,
    I usually wouldn't do a reboot - I find that restarting all of the services, such as /etc/init.d/exim restart && /etc/init.d/network restart && /etc/init.d/ipaliases restart && /etc/init.d/named restart && /etc/init.d/httpd graceful and logging out is enough. It won't hurt though to reboot, personal prefs. I value my uptime too much

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Thanks for that. I never normally recommend reboots - only for kernels and hostname changes - and I've always been wary about recommending people to restart network from within an SSH session, though I've done it enough times myself.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #7
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    Quote Originally Posted by DigitalN
    Hello,

    what does

    # hostname

    show?

    If you want to make sure the hostname is set correctly, these are the commands and files you need

    # hostname your.host.com

    Then edit the following , to make sure they are correct.

    /etc/sysconfig/network

    /etc/hosts

    /etc/resolv.conf

    /var/named/your.dns.zone.com.db (add A record for host)

    /usr/local/apache/conf/httpd.conf

    Restart services such as mail and apache if you change the hostname.
    I don't really know how to do any of that. Sorry

  8. #8
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    Quote Originally Posted by chirpy
    Actually, if that is properly quoted, it looks like you have a space at the end of your hostname.
    It is, but it just gives me the error message when I go to change it!

  9. #9
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Will you please submit a support ticket to my attention (Ben)?

    Support Request Form

    Thanks

  10. #10
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Red face

    Quote Originally Posted by cpanelben
    Will you please submit a support ticket to my attention (Ben)?

    Support Request Form

    Thanks
    Done!

    I really need a quick fix, all my mail is bouncing back because of invalid hostnames and synatx errors!

  11. #11
    Member
    Join Date
    Sep 2004
    Posts
    529

    Default

    Quote Originally Posted by cooldude7273
    I don't really know how to do any of that. Sorry
    Just FYI: Paying a competent server admin to help you with things you can't deal with can help ensure that you get things working much faster...

    but if you don't know how to edit simple text files, or use cli/ssh, you really shouldn't be the sole admin of a server.

Similar Threads & Tags
Similar threads

  1. Problem on Hostname !
    By sady92 in forum New User Questions
    Replies: 3
    Last Post: 06-10-2011, 08:11 PM
  2. Problem with hostname
    By keyboardkiller in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-10-2007, 07:52 PM
  3. Hostname problem.
    By rXHosting in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-06-2006, 12:42 AM
  4. Hostname - nobody@ problem.
    By hergy80 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 12-09-2005, 11:55 AM
  5. Hostname Problem
    By Aldweb in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-25-2005, 05:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube