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