HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   how to change server name (http://www.howtoforge.com/forums/showthread.php?t=823)

lexcomputer 12th October 2005 07:08

how to change server name
 
Could anyone tell me how to change my server name

I got the result after run telnet mail.mydomain.com 25

220 server1.mydomain.com ESMTP Postfix

Then I would like to change from server1.mydomain.com to ns.yourdomain.net. How can I make change?

Thank you.

falko 12th October 2005 10:01

Run
Code:

echo ns.yourdomain.net > /etc/hostname
/bin/hostname -F /etc/hostname

Also change your hostname in /etc/postfix/main.cf (myhostname and mydomain). Don't forget to restart Postfix.


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

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