Wednesday, May 15, 2013

EC2 (classic) instance hostname is not hostname and is not hostname

This is the results from wget and hostname at command line.
1. wget -q -O -
Output --->
2. wget -q -O -
Output-->   ip-10-222-1-241.ec2.internal
3. wget -q -O -
4. wget -q -O -
5. wget -q -O -
6. [root@wls1 ~]# hostname  ---> linux command line

Someone changed the host name after boot or at boot time using user-data or another method.  Normally you would see:

1. wget -q -O -
Output --->

2. hostname: hostname ---> linux command line

No comments:

Post a Comment