File: Name_Resolution.pl

package info (click to toggle)
piwi 0.8%2B20041206-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, jessie, jessie-kfreebsd, lenny, sarge, squeeze, wheezy
  • size: 1,076 kB
  • ctags: 162
  • sloc: perl: 5,425; makefile: 49; xml: 49
file content (17 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Socket;

sub MY_gethostbyaddr($)
{
	my $iaddr = shift;

	if ( $conf{'HostName_Lookup'} )
	{
		return gethostbyaddr( inet_aton( $iaddr ), AF_INET );
	}
	else
	{
		return ( 'n/a', '', '' )
	}
}

1;