Bug 51359 - bad IP detection
bad IP detection
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: rhn_register (Show other bugs)
7.3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-09 15:33 EDT by Sean Dilda
Modified: 2015-01-07 18:50 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-09-02 17:34:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Sean Dilda 2001-08-09 15:33:21 EDT
I just ran rhn_register and it detected my IP as 127.0.0.1

I ran rhn_register again and got the same error.  Here's what ifconfig
looks like:

[agrajag@loiosh agrajag]$ /sbin/ifconfig
eth1      Link encap:Ethernet  HWaddr 00:02:2D:0D:ED:A0  
          inet addr:192.168.105.22  Bcast:192.168.105.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
          RX packets:7118 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6735 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:2981693 (2.8 Mb)  TX bytes:891374 (870.4 Kb)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:420 (420.0 b)  TX bytes:420 (420.0 b)

[agrajag@loiosh agrajag]$
Comment 1 Adrian Likins 2001-08-09 15:58:25 EDT
This is a result of the python code:
	gethostbyname(gethostname())

so, if /etc/hosts has the hostname resolving to 127.0.0.1, thats what
you will get.

ah, the magic of irc...

Note You need to log in before you can comment on or make changes to this bug.