#1 (permalink)  
Old 01-30-2005, 02:48 PM
Registered User
 
Join Date: Jan 2004
Location: Roswell, GA
Posts: 363
cooldude7273 is on a distinguished road
Unhappy Help! Hostname problem!

Quote:
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-30-2005, 02:56 PM
Registered User
 
Join Date: Sep 2004
Posts: 423
DigitalN is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-30-2005, 04:21 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Actually, if that is properly quoted, it looks like you have a space at the end of your hostname.
__________________
Jonathan Michaelson
cPanel Forum Moderator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-30-2005, 04:23 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
cPanel Forum Moderator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-30-2005, 04:38 PM
Registered User
 
Join Date: Sep 2004
Posts: 423
DigitalN is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-30-2005, 04:48 PM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
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
cPanel Forum Moderator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-30-2005, 08:23 PM
Registered User
 
Join Date: Jan 2004
Location: Roswell, GA
Posts: 363
cooldude7273 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-30-2005, 08:26 PM
Registered User
 
Join Date: Jan 2004
Location: Roswell, GA
Posts: 363
cooldude7273 is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-30-2005, 11:28 PM
cpanelben's Avatar
Staff Member
 
Join Date: Feb 2004
Posts: 595
cpanelben is on a distinguished road
Will you please submit a support ticket to my attention (Ben)?

Support Request Form

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-31-2005, 06:14 PM
Registered User
 
Join Date: Jan 2004
Location: Roswell, GA
Posts: 363
cooldude7273 is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 02-03-2005, 04:18 AM
Registered User
 
Join Date: Sep 2004
Posts: 529
dezignguy is an unknown quantity at this point
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:07 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc