Change hostname in AIX
2013.04.30 20:17
원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어
Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Writer : http://www.ischo.net -- ischo // System Engineer
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Change hostname in AIX
1. Apply hostname information in inet0 device to ODM permanently.
# chdev -l inet0 -a hostname=<new hostname>
or
# smitty hostname
2. Change hostname ( affected now, but after reboot will not changed)
# hostname <new hostname>
3. change hostname at command 'uname'
# uname -S <new hostname>
or
run # /etc/rc.net
* uname command's result will not change after run 'hostname <newhostname>' command.
it need to run 'uname -S'. it will be affected after reboot, because booting script /etc/rc.net including 'uname -S' command.
4. edit /etc/hosts file to apply new hostname
# vi /etc/hosts
<interface IP> <new hostname>
ex) 192.168.10.2 oldhostname -> 192.168.10.2 newhostname
5. edit DNS file (ex:/etc/resolv.conf) if necessary.
# vi /etc/resolv.conf