you should have all these files or else create it.
/etc/nodename
/etc/hostname.<interface> e.g /etc/client.gani0 gani0 is the network interface
/etc/inet/hosts
/etc/inet/ipnodes
#vi /etc/nodename
client
#/etc/hostname.<interface>
client
bash-3.00# vi /etc/inet/hosts
"/etc/inet/hosts" [Read only] 6 lines, 111 characters
#
# Internet host table
#
127.0.0.1 localhost loghost
::1 localhost loghost
192.168.1.13 client# Added by DHCP add "client" as host name
check in /etc/inet/ipnodes it will be changed and hostname will be client
No comments:
Post a Comment