At 07:51 AM 2/8/00 +0000, Richard Adams wrote [in part]:
>> Actually, he said to use "hostname -i". I tried this and, to my surprise
>> (since I "knew" the same thing you did), it worked as promised, displaying
>> the IP address of my NIC. According to the man page (yes, it IS mentioned in
>> the man page) it will display all the IP addresses of a multi-address host.
>> You learn something new every day ....
>
>Yes i have replyed to the gentelman concerned, i did not know either,
>however it does not nessasarly show the NIC IP, when i do hostname -i
>i get 44.137.28.48 because thats the static IP of pa3gcu.ampr.org
>eth0 here is my dhcp NIC and is  212.92.66.77.
>
>But of course it is my hostname.

Well ... so it does. I just ran "hostname -i" our our router (which has 3
interfaces) and it only returns the IP address of eth0 -- not eth1 or sl0.
Pfui! The man page says the -i flag tells hostname to "Display the IP
address(es) of the host." Not so, it seems.


------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to