|
|||
|
Quote:
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 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 |
|
||||
|
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 |
|
|||
|
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 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 |
|
|||
|
Quote:
|
|
|||
|
Quote:
|
|
|||
|
Quote:
I really need a quick fix, all my mail is bouncing back because of invalid hostnames and synatx errors! |
|
|||
|
Quote:
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|