#1  
Old 22nd September 2011, 13:04
madunix madunix is offline
Member
 
Join Date: Jan 2008
Posts: 31
Thanks: 0
Thanked 3 Times in 2 Posts
Default hostname

I want to change the hostname e.g. from server1.mydomain.com to server.xyz.com, what would be the best to way to do that without affecting my ISPConfig.


Thanks
Reply With Quote
Sponsored Links
  #2  
Old 22nd September 2011, 13:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,775
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

Change the hostname in /etc/hosts, /etc/hostname, /etc/mailname and postfix main.cf file. Then restart the server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd September 2011, 14:45
madunix madunix is offline
Member
 
Join Date: Jan 2008
Posts: 31
Thanks: 0
Thanked 3 Times in 2 Posts
Default

[root@server1 libs]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
10.5.1.61 server1 server1.cdsjordan.com
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
[root@server1 libs]# cat /etc/hostname
cat: /etc/hostname: No such file or directory
[root@server1 libs]# cd /etc/
[root@server1 etc]# ls hos*
host.conf hosts hosts.allow hosts.deny
[root@server1 etc]# cat /etc/mailname
cat: /etc/mailname: No such file or directory
[root@server1 etc]#
Reply With Quote
  #4  
Old 22nd September 2011, 16:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,775
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
 
Default

If you use opensuse or centos, then you will have to use the network configuration utilitys of the linux distribution to change the hostname.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 11:49
Odd Spam behaviour itsnedkeren Installation/Configuration 1 11th December 2010 15:20
Being Spammed/Hacked/Probed not sure PLEASE HELP! kresser General 10 29th October 2010 18:25
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 14:29
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 13:47


All times are GMT +2. The time now is 13:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.