ISPConfig 3 IP and Hostname Change

Mindwatering Incorporated

Author: Tripp W Black

Created: 12/14/2015 at 11:34 AM

 

Category:
Linux
Other

Issue:
Have to mover a server and update the server's domain name.


OS Changes:
IP Address:
/etc/network/interfaces
/etc/hosts

Hostname:
/etc/resolv.conf
/etc/hostname

Both:
/home/admispconfig/ispconfig/lib/config.inic.php
or
/usr/local/ispconfig/<server/interface/etc>/lib/config.inic.php
Note: No IPs or names hardcoded in this file anymore.

/etc/postfix/main.cf
-- update myhostname
-- update mynetworks (if you also need to change IP)
-- update mydestination


ISPConfig Changes:
System > System --> Server Config
System > Server IP Addresses (may not be set)
If web sites have IP set, open and save (even if new one displays)

BIND Update:
# perl -pi -e 's/old-ip/new-ip/g' /etc/bind/*
# update dns_rr set data = 'new-ip' where data = 'old-ip';



previous page