File: wrapsrv.1

package info (click to toggle)
wrapsrv 1.0.0-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 112 kB
  • ctags: 70
  • sloc: ansic: 468; makefile: 57
file content (36 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'\" -*- coding: us-ascii -*-
.if \n(.g .ds T< \\FC
.if \n(.g .ds T> \\F[\n[.fam]]
.de URL
\\$2 \(la\\$1\(ra\\$3
..
.if \n(.g .mso www.tmac
.TH wrapsrv 1 "13 December 2013" "" ""
.SH NAME
wrapsrv \- DNS SRV record command line wrapper
.SH SYNOPSIS
'nh
.fi
.ad l
\fBwrapsrv\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
[\fISRVNAME\fR] [\fICOMMAND\fR] [\fIOPTION\fR]\&...
'in \n(.iu-\nxu
.ad b
'hy
.SH DESCRIPTION
\fBwrapsrv\fR adds support for connecting to a
network service based on DNS SRV record lookups to commands that
do not support the DNS SRV record. \fBwrapsrv\fR
implements the weighted priority client connection algorithm in
RFC 2782. The specified command line will be invoked one or more
times with \fI%h\fR and
\fI%p\fR sequences in the command line
substituted for the hostname and port elements of the selected SRV
record. The command line invoked must exit and return 0 after a
successful connection or exit and return non-zero if the
connection fails. \fBwrapsrv\fR 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.