var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
SSH hostname commands
Hi I bought a dedicated server but my host didnt respect the hostname I setted when I ordered and now I have to put the hostname by myself,can anyone bring the ssh commands to change hostname?
Not really sure what linux distro you're using but:
can also do it by:
Just make sure it is a FQDN.
will in addition set the hostname immediately for the current session.
What he said. Make sure that the hostname is also pingable, especially if it's a cPanel server. cPanel can be quite the PITA if DNS isn't set properly for the hostname.
Originally Posted by
Last edited by MXV-CPence; 04-03-2011 at
Reason: Ha - Had HostDime on the brain for some reason.
I got debian linux,will try that bro thank you czelser and all
Mine had my hosts dns's and I changed them for mine in the meanwhile I had the ssh commands
I used this
and got this
kernel.hostname = myownhostname.com
I went to my host's management console and it really dont show it works I guess that code didnt work,it shows my host's hostname again
the easy way:
and put "hostname NEW-HOSTNAME" in /etc/rc.local
make sure you either use a FQDN (server.host.com) that resolvs to the VPS IP, or add the new hostname in your /etc/hosts (NAME 127.0.0.1 or NAME EXTERNAL-IP)
You can also use the sysctl stuff, but that wont work on example OpenVZ VPS.
yes it might be since the other code didnt work even rebooting
thanks folks for ur very fine attentions
my server dont recognize
please moderator close this thread issue is solved
By nootkan in forum Hosting Security and Technology
Last Post: 09-07-2009, 01:59 PM
By TylerH in forum Hosting Security and Technology
Last Post: 10-22-2008, 12:33 AM
By learnerman in forum Hosting Security and Technology
Last Post: 02-04-2006, 02:53 PM
By boyla in forum Hosting Security and Technology
Last Post: 10-23-2005, 09:26 PM
By Cloudarama in forum Web Hosting
Last Post: 03-04-2003, 01:22 PM