NAME

make-srv - Make an SRV record for tinydns


SYNOPSIS

make-srv -service service -target target -port port [options]

Options:

-priority priority
-weight weight


DESCRIPTION

This command prints a DNS SRV record to standard output in tinydns-data format. This record is defined by RFC 2052.

The -service flag specifies the domain name for which the SRV record is defined. This name should have the format service.protocol.domain. For example: http.tcp.dqd.com. You must specify the -service flag.

The -target flag specifies the target domain name of the record. The target must be a domain name with an associated A record. (This command doesn't verify that, but the RFC says it's a requirement.) You must specify the -target flag.

The -port flag specifies the port number of the record. You must specify the -port flag.

The -priority and -weight flags specify the priority and weight of the record. These flags are optional; priority and weight are zero by default.

Example:

    $ make-srv -service http.tcp.dqd.com -target zot.dqd.com -port 80
    :http.tcp.dqd.com:33:\000\000\000\000\000P\003zot\003dqd\003com\000

You may add the ttl, timestamp, and lo fields to the end of the line yourself if necessary. For example,

    :http.tcp.dqd.com:33:\000\000\000\000\000P\003zot\003dqd\003com\000:::in

is the same SRV record as in the example above, but will be visible only to clients in the in location. See the tinydns-data documentation for help with these fields.


LINKS