Problem
I want to change the System Name, Domain and IP address on my SCO Unix system.
Solution
Follow the steps below to change your SCO Unix System Name, Domain Name, and IP address:
1. "uname -S <new name>" if you are changing the server name.2. "netconfig" or "netcfg" and change the details there.3. Check /etc/hosts to ensure the new details are correct and that there are
no duplicate entries.If you're changing your domain name then check /etc/resolv.conf.
4. Relink the kernel (only necessary on OpenServer 5) and reboot your server.For OpenServer5 see the steps below and the additional following for troubleshooting:
http://osr507doc.xinuos.com/en/MailMsgG/mmdfD.troub_sysname.htmlhttp://aplawrence.com/Jeffl/new_name.htmlFor UnixWare7 see:http://uw714doc.xinuos.com/en/man/html.1M/setuname.1M.htmlHowever, for a more detailed check on Legacy systems use the steps below:
Netscape:
--------
(1) Go to SCOadmin-> Netscape Server Admin, and log in as the "admin" user.
The password is usually the root password. Turn the servers OFF,
then click on each server port number, choose Network Settings, and
update Server Name. Do this for port 80, scohelphttp, and any other
ports in use. (Netscape may be very slow to start if you aren't
connected to the network.)(2) nsadmin stop(3) vi /usr/ns-home/admserv/ns-admin.conf; edit ServerName, Addresses.(4) vi /usr/ns-home/cgi-bin/counters/conf/count.cfg; update host names at the end of the text file.
Netware:
-------
(5) vi /etc/netware/nwconfig, and change server_name.Webtop:
------
(6) If you change the name of your system after installing the Webtop,
you must ensure that the system name is changed properly throughout
the Webtop. To do this, perform the following commands while logged
in as root:/opt/webtop/bin/webtop setup
/opt/webtop/bin/scoadminregYou should also confirm that the system name has been changed properly in your web server. If you are using the Netscape FastTrack Server, check the following files:
/usr/ns-home/admserv/ns-admin.conf
/usr/ns-home/httpd-80/config/magnus.confReplace any instances of the previous system name with the new system name. After editing the files, restart the administration server and the web server.
If you are using another type of web server, check your product documentation for information about editing configuration files.
NFS:
---
(7) Check if the system hostname matches the entry in the
/etc/net/*/hosts files. For example, if the machine's hostname
was hulk (as returned by uname -n), the entry in each of the
/etc/net/*/hosts files should look like:hulk hulkIf the first entry in each of the /etc/net/*/hosts files does not match the machine's hostname, then stop NFS and update the first entry in the /etc/net/*/hosts files.
- Should you be unable to mount the server's NFS new name filessytems with
(-o rw=remote_host) then check that you are not using the server's DNS
name. It is likely that NFS will require the new name to be entered
into the /etc/hosts file.This issue has been reported to SCO Engineering.
DNS:
---
(8) Update /etc/inet/named.boot and /etc/inet/named.d/* if DNS is configured.SAMBA / NETBIOS:
---------------
(9) If netbios was installed then update the IP address in /etc/inet/nb.conf
(/etc/default/nbconf for OSR5).and if SAMBA is being used, check /etc/smb.confMMDF:
----
(10) If MMDF is configured as the system MTA, you may be able to use:
scoadmin > Mail
to change the hostname in affected files, presuming no
hand-customized modifications which might not be noticed.For absolute comprehensive reconfiguration:
su - mmdf
vi mmdftailor (replace oldhostname with newhostname)
cd table
vi alias.* *.chn *.dom (replace oldhostname with newhostname in each)
Also modify any other customized files referenced in mmdftailor
The rebuild the mmdf database tables using:
./dbmbuildAdditional TroubleShooting:
--------------------------
- Logging into CDE locks, the server is slow and appears to hangCheck that, having used "netcfg" to change the server's IP Address that the OLD Address has been removed.
- 'netcfg' requests a kernel relink and a reboot is required
Check the /etc/hosts file for any "<" ">" entries, for example, <SERVER12345>
The length of 'uname' is a set to the value of 'char', however, setting a limit of 8 characters would ensure that there are no problems within legacy tools such as 'uucp' and 'mmdf'.
Check with "setuname -n <newname.domain>"- Use the following "find" command to create a list of files containing the old hostname or old IP address:
# find / -type f -exec fgrep -l '<old-name/old-ip>' {} \; > /tmp/file.list- Some instances of the old System Name and IP address will remain, notably in /var/adm/isl/ifile and in various history and log files.
See also
TA#127300: "How to change the System/Host Name, Domain Name or IP Address on my SCO OpenServer 6.0.0 system?"