wrapsrv(1)wrapsrv(1)NAMEwrapsrv - DNS SRV record command line wrapper
SYNOPSISwrapsrv [SRVNAME] [COMMAND] [OPTION]...
DESCRIPTIONwrapsrv adds support for connecting to a network service based on DNS
SRV record lookups to commands that do not support the DNS SRV record.
wrapsrv implements the weighted priority client connection algorithm in
RFC 2782. The specified command line will be invoked one or more times
with %h and %p sequences in the command line substituted for the host‐
name and port elements of the selected SRV record. The command line in‐
voked must exit and return 0 after a successful connection or exit and
return non-zero if the connection fails. wrapsrv will itself exit with
the return code of the last command line invocation, or it may exit
with a non-zero return code if the DNS SRV record lookup fails for any
reason.
13 December 2013 wrapsrv(1)