dp_netinfo

Syntax
 
dp_netinfo option args
 
Comments
 
Option can be one of the following:

The -service option takes one argument: a service name or port number.  Enter a service name (i.e. "http" or "telnet") and dp_netinfo will return the active server port for that service based on the system configuration.  In UNIX, this information is usually stored in /etc/services.  Likewise, you can give it a port number and it will return the name of the service on that port.

The -address options allows one to translate from IP address to hostname and vice versa.  It also takes one argument: an IP address (127.0.0.1) or a hostname (www.foobar.com) and returns the cooresponding value.

Examples

dp_netinfo -service http
dp_netinfo -service 80
dp_netinfo -address www.foobar.com
dp_netinfo -address 127.0.0.1