D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

RE: [LUG] Perl NIC subroutine?



On Wed, 2004-02-25 at 18:14, Darke, Clive wrote:
There are several options.  Look at gethostbyname, perldoc -f gethostbyname
will give you the doc.  Also look at Net::hostent (standard module), man
Net::hostent contains some examples.

No, that works by using the /etc/hosts or dns. I want something that in
effect looks at 'ifconfig' and says 'lo = 127.0.0.1', 'eth0 = 10.1.2.3',
etc, etc.



John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: John.Horne@xxxxxxxxxxxxxx       Fax: +44 (0)1752 233839



--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.



Lynx friendly