hf man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

HF(1)									 HF(1)

NAME
       hf, ef, nf, pf - address to name filters

SYNOPSIS
       hf [-1abcdilN] [-f format] [-t secs] [file ...]
       ef [-d] [file ...]
       nf [-di] [file ...]
       pf [-d] [file ...]

DESCRIPTION
       These  filters  reads the named files (or from stdin if there are none)
       and replace occurrences of a particular kind of address to  the	corre‐
       sponding name:

	      hf - converts raw internet addresses to hostnames.
	      ef - converts ethernet addresses to hostnames.
	      nf - converts network addresses to names.
	      pf - converts square bracketed port numbers to names.

OPTIONS
       Options common to all programs:

       -d     Dump the hash table (usually for debugging purposes).

       Options specific to hf:

       -1     Attempt to convert only the first address on a line.

       -a     Use asynchronous dns lookups.

       -b     Prints  both  the	 hostname  and	the  ip address (the latter in
	      parentheses).  This is a shortcut for -f "%h(%i)".

       -c     Checks the names against ip addresses; that is, the hostname the
	      address resolves to must resolve back to the address or else the
	      address is not converted to a hostname.

       -f     Specify a format string containing escapes to be used to	create
	      the replacement text. The escapes are as follows:

		     %h - hostname (%D, %N, %l or even %i)
		     %D - local domain truncated hostname
		     %N - domain truncated hostname
		     %l - long hostname (FQDN)
		     %i - ip address
		     %% - %

	      Unrecognized  escapes  expand  to the character without the per‐
	      cent.  It's acceptable to use specific escapes more  than	 once.
	      Specifying an empty format resets it to the default ("%h").

       -i     Force converted names to be all lowercase.

       -l     By  default, hf strips the domain part of hostnames in the local
	      domain. The -l flag suppresses this stripping.

       -N     Strips the entire domain of all hostnames.

       -t     Specify a timeout (in seconds) for name and address lookups.  By
	      default, timeouts are left up to the resolver routines.

       Options specific to nf:

       -i     Force converted names to be all lowercase.

       -b     Prints  both  the	 hostname  and	the  ip address (the latter in
	      parentheses).

       -p     Pad network addresses to four octets.

SEE ALSO
       gethostbyaddr(3), ether_aton(3), getnetbyaddr(3), getservbyport(3)

BUGS
       If a port number has different tcp and udp names, pf will favor the tcp
       name.

4th Berkeley Distribution      December, 9 2009				 HF(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net