cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
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! :confused:
 

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
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.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
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?
 

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
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 :)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
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.
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
DigitalN said:
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 :confused:
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
chirpy said:
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! :confused:
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
cpanelben said:
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!
 

dezignguy

Well-Known Member
Sep 26, 2004
533
0
166
cooldude7273 said:
I don't really know how to do any of that. Sorry :confused:
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.