question on hostname

classic Classic list List threaded Threaded
4 messages Options
Sri
Reply | Threaded
Open this post in threaded view
|

question on hostname

Sri
Hi Erman,

Good day!!!

Need your  help again.

when we issue hostname -i at linux prompt,we are getting result as below.We checked it with root as well as oracle user but the result is same.can you please help what might be wrong

[oraprod@0i ~]$ hostname -i
fe80::8c92:4a0a:5762:108c%bond0 fe80::1595:e2f8:b44e:6361%bond1 169.254.157.165 192.168.122.1 172.16.111.75 172.16.200.11 172.16.111.76 172.16.111.80 172.16.111.81
[oraprod@0i ~]$ hostname
0i

Thanks a lot for your kindly help

Thank you,
sri
Sri
Reply | Threaded
Open this post in threaded view
|

Re: question on hostname

Sri
Hi Erman,

We have identified the below file has wrong entry with the help of our blog "http://ermanarslan.blogspot.in/2014/11/linux-setting-hostname-fqdn-or-short.html"

[oraprod@0i ~]$ cat /proc/sys/kernel/hostname
0i
[oraprod@0i ~]$

can we change this file without any service restart or can you please suggest if anything is wrong

Thank you
Reply | Threaded
Open this post in threaded view
|

Re: question on hostname

ErmanArslansOracleBlog
Administrator
Your hostname is wrong.
Change your hostname.
Use hostname command for this.
Also ensure your hostname is written in /etc/hosts file..

You need to follow standard Linux documents to change your hostname.
But, if you have applications/databases running on this OS, you need follow application/database specific hostname change documentation as well.
Sri
Reply | Threaded
Open this post in threaded view
|

Re: question on hostname

Sri
thanks erman,we have changed it