WHM is telling me that! I am trying to change it, but it won't let me, it just keeps saying that!Invalid Hostname. (tagging.number1host.net ). Hostnames may not contains spaces or tabs.
Help!![]()
WHM is telling me that! I am trying to change it, but it won't let me, it just keeps saying that!Invalid Hostname. (tagging.number1host.net ). Hostnames may not contains spaces or tabs.
Help!![]()
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.
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
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
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![]()
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
I don't really know how to do any of that. SorryOriginally Posted by DigitalN
![]()
It is, but it just gives me the error message when I go to change it!Originally Posted by chirpy
![]()
Will you please submit a support ticket to my attention (Ben)?
Support Request Form
Thanks
Done!Originally Posted by cpanelben
I really need a quick fix, all my mail is bouncing back because of invalid hostnames and synatx errors!
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...Originally Posted by cooldude7273
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.