netstat is a TCP/IP utility, it has nothing to do with net bios. But anyway,
if you want to get the machine name:
my $localhost=Win32::NodeName();                # Get the name of the local
computer and store it in $localhost.

Else, you will have to query either the network WINS of the LMhosts file,
depending on how you are doing name lookup for netbios.

John


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 17, 2002 12:11 AM
> To: [EMAIL PROTECTED]
> Subject: Using an API how do you translate a tcp/ip address to NetBIOS
> name?
> 
> 
> Does anyone know the API interface to translate an tcp/ip address 
> (ie: 123.456.789.123) to the corresponding NETBIOS name(ie: 
> \\workstation)?
> 
> From the command line you can do this function with
> 
> NBTSTAT -A 123.456.789.123
> 
> I know I could use system or back ticks and use a regular 
> expression to
> compile the info. I was just hoping to collect the 
> information directly
> with a API.
> 
> Howard Jares
> University of Houston
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to