-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# NAME | ||
|
||
dnssrv - Tcl DNS SRV Client | ||
|
||
# SYNOPSIS | ||
|
||
package require dnssrv | ||
|
||
```` | ||
::dnssrv::hostlist query ?options? | ||
::dnssrv::tophost query ?options? | ||
```` | ||
|
||
# DESCRIPTION | ||
|
||
The dnssrv package provides a Tcl client for querying DNS SRV records. You | ||
should refer to RFC 2782 for information about DNS SRV records. | ||
|
||
# COMMANDS | ||
|
||
## ::dnssrv::hostlist query ?options? | ||
|
||
Return an ordered list of hostnames from a DNS SRV RR recordset resolved | ||
from DNS. Query should be a fully qualified domain name in the form expected | ||
for a DNS SRV record resembling `_service._protocol.example.org` | ||
|
||
The list will be properly sorted and randomized to accommodate the advertised | ||
priority and weighting values from the underlying RR recordset in DNS. | ||
|
||
The `-ports` option will append the advertised port number as part of the hostname in the | ||
form `hostname.example.org:port` | ||
|
||
## ::dnssrv::tophost query ?options? | ||
|
||
Returns a single hostname which represents the top-ordered host from the | ||
hostlist for use where only a single hostname is desired. | ||
|
||
# AUTHOR | ||
|
||
David McNett - https://github.com/nugget/tcl-dnssrv |