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=4)
-   -   Changing hostname from domain.com to ns1.domain.com (http://www.howtoforge.com/forums/showthread.php?t=62387)

ginner159 27th June 2013 22:42

Changing hostname from domain.com to ns1.domain.com
 
hi all and thanks for all the help!!

i have a vps hosted using a solusVM which is running ispconfig 3 and debian 6.
When i first got it i just set the HOSTNAME as mydomain.com but now ive purchased a small 128mb server which im using as a ns2.mydomain.com which i setup with that hostname and have got it connected successfully to the first server.

What im wanting to know is, what do i need to change so the mydomain.com hostname is ns1.mydomain.com and ensure that postfix ispconfig dns etc still works and the other server can still connect (dont mind reinstalling the ns2 as its just a nameserver if needed)

I followed the setup tutorial here (debian 6 perfect server) initially then this(roll ya own dns) when adding my seccond server

id10t 9th July 2013 04:52

Which hostname(s) did you change/set? The one in /etc/hostname or in the mail configs, web address, etc? Or is it your DNS servers only?

ginner159 9th July 2013 10:46

I haven't changed it yet as I've been waiting for a reply on what to do. And it's for my main server

till 9th July 2013 11:42

The hostname has to be cahnge din these files:

/etc/hostname
/etc/hosts
/etc/mailname
/etc/postfix/main.cf

then run:

/etc/init.d/hostname restart
/etc/init.d/postfix restart

Airbag888 7th September 2014 20:34

Quote:

Originally Posted by till (Post 299570)
The hostname has to be cahnge din these files:

/etc/hostname
/etc/hosts
/etc/mailname
/etc/postfix/main.cf

then run:

/etc/init.d/hostname restart
/etc/init.d/postfix restart

On Debian Wheezy I had to do /etc/init.d/hostname.sh start

Everything else worked :)


All times are GMT +2. The time now is 08:40.

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