From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076330121601.tru64-unix-managers.marc@archive.invalid> From: "Anil Khullar, Computer Center" Date: Thu, 28 Mar 1996 07:49:06 +0000 To: tru64-unix-managers Subject: SUMMARY-2: Steps in renaming a live host to another... X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076330121601 Hi, More suggestions, Thanks to - "Jeff Finkelstein Ray Bellis ------------------- The only requirements are 1-3 and 8. 4-7 are not essential, but they do make management easier. The changes in the kernel config are only informational, they are not required to change hostnames. -------------------------- > 1. As super user hostname newname This shouldn't be neccesary, as it'll happen automatically at the next reboot. The hostname isn't stored between reboots, it's read from /etc/rc.config. > > 2. Edit /etc/hosts file > > 3. Edit /etc/rc.config Don't forget the `rcmgr' command! Instead of hand editing you can do: # rcmgr set HOSTNAME hostb.etc... In fact, excepting LAT that's the only change you'll have to make to /etc/rc.config. > 4. cp /sys/conf/HOSTA /sys/conf/HOSTB > > 5. doconfig -c HOSTB > > 6. Copy new kernel over 4, 5 & 6 can be done a lot simpler, it's not neccesary to do a kernel rebuild. # mv /sys/conf/HOSTA /sys/conf/HOSTB # mv /sys/HOSTA /sys/HOSTB > 7. reboot > > 8. Make changes in the primary DNS machine > Unless you have control over the TTL of your DNS entry I suggest you move this further up the list. If the original hostname isn't going to be reused by another system I'd suggest adding a CNAME record as well. Although I don't use LAT myself I expect you may have to change some of your LAT settings.