SPUG: Get the local IP address?

Jay Scherrer jay at scherrer.com
Wed Jul 20 16:23:50 PDT 2005

On Wed, 2005-07-20 at 15:27 -0700, Atom Powers wrote:
> On 7/20/05, Bill Campbell <bill at celestial.com> wrote:
> > I handle this with a module I wrote that scans the output of the ifconfig
> > command with appropriate conversions based on the underlying OS.
> > 
> I was hoping to avoid parsing ifconfig. But I haven't found any other way.
> _____________________________________________________________
> Seattle Perl Users Group Mailing List  
>      POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
>     MEETINGS: 3rd Tuesdays, Location: Amazon.com Pac-Med
>     WEB PAGE: http://seattleperl.org/
I have been working with one script called "dnswalk-2.0.2" by David Barr
<barr at cis.ohio-state.edu>. This script is built upon NET::DNS. This perl
script is meant for debugging DNS entries through to sub-domains.
Although the latest release is 1997 it still works and it might be what
your looking for to decipher ip addresses. 

Jay Scherrer

More information about the spug-list mailing list