Add options to manage unusual network configurations

Adds the following options.
    -p, --port PORT                  Port to use for name lookup
    -c, --use-tcp-connection         Use TCP for lookup