adddnssrvrec

Use this method to creates a service (SRV) record for the service offered by the specified target host, in the specified domain.

Syntax



Parameters

domain

Domain name, which, by convention, is prefixed by the symbolic name of the desired service and the symbolic name of the desired protocol, each with an underscore (_) prepended. For example, if an SRV-aware client wants to discover a SIP service that is provided over UDP, in the domain example.com, the client performs a lookup for _sip._udp.example.com.
This is mandatory parameter.

target

Target host for the specified service.
This is mandatory parameter.

priority

Integer specifying the priority of the target host. The lower the number, the higher the priority. If multiple target hosts have the same priority, selection is based on the Weight parameter.
This is mandatory parameter.
Maximum value = 65535.

weight

Weight for the target host. Aids host selection when two or more hosts have the same priority. A larger number indicates greater weight.
This is mandatory parameter.
Maximum value = 65535.

port

Port on which the target host listens for client requests.
This is mandatory parameter.
Maximum value = 65535.

ttl

Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600.
Default value = 3600.
Maximum value = 2147483647.

Return Value

Returns simpleResult

See Also