Before reiping a machine, coordinate with
hostmaster
to set up the dns records.
Also, for truststc.org
, you will need to
change the record at
ehost.
After moving a machine and giving it a different name,
do the following
- Change the name in /etc/hostname.hme0, /etc/nodename and /etc/auto_home.
- Add the new hostname to /etc/hosts
- Change the name of the router in /etc/defaultrouter
- Change the name of the nameserver in /etc/resolv.conf
- Get ssh working for the www user so that we
can update php scripts
- Change the name in
/usr/local/apache/conf/httpd.conf and
php/include/conf.inc.php3
After moving a machine and giving it a different ip address,
do the following
- Edit
/etc/nsswitch.conf
and modify
the hosts
line so that the machine
will get its name from DNS:
hosts: dns files
After the ip change, change this line back to
hosts: files dns
- Change the ip address in
/etc/hostname.hme0
and /etc/hosts
.
- Change the name of the router in
/etc/defaultrouter
.
If your client is getting its address via dhcp,
then editing /etc/defaultrouter
might
not be necessary.
- Change the name of the nameservers in
/etc/resolv.conf
See the IDSG Cory Networking page
- If necessary, add the network to
/etc/networks
.
- After rebooting, verify that ssh works for the various users like
www.
The old IP Address might be in the ~/.ssh/
directory of some of the accounts to check.
You may need to update these files:
- If you are changing the name of the website, then
update the DNS server for the the website, see
Domain Name Servers.
- If you are running mailman and the website name changes,
then you will need to modify the mailman setup or else
the web forms will not work.
The script
/home/www/php/mailman/updatemailmanwebsite
does the following:
For each mailinglist:
- Download the configuration:
/export/home/mailman_N/bin/config_list -o /tmp/mailman.txt mailinglistName
- Edit
/tmp/mailman.txt
and change
to the new website
- Upload the new configuration:
/export/home/mailman_N/bin/config_list -i /tmp/mailman.txt mailinglistName