Question & Answer
Question
Change System's hostname in AIX
Answer
This document lists instructions for changing the hostname of a system in AIX.
- Permanently change hostname for inet0 device in the ODM by choosing one of the following:
- Command line method:
chdev -l inet0 -a hostname=<newhostname> - SMIT method:
smitty hostname(fastpath)
- Command line method:
- Change the name of the node which changes the
unameprocess by choosing one of the following:- Command line method:
uname -S <newhostname> - or run the following script:
/etc/rc.net
- Command line method:
- Change the hostname on the current running system. Enter:
hostname <newhostname> - Change the /etc/hosts file to reflect the new hostname.
- Change DNS name server, if applicable.
[{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Network communications","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.1;5.2;5.3","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Historical Number
isg1pTechnote1435
Was this topic helpful?
Document Information
Modified date:
04 December 2019
UID
isg3T1000656