Adding SRV Record

Description

Adds a Service (SRV) record.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
domain-name String Required Domain name for which you want to add the SRV record
value String Required The hostname of the machine providing the service
host String Required

A fully qualified Service name consisting of:

  • Service Record

  • Protocol

  • Domain Name

This is mentioned as _< service-name >._< protocol >.domain-name.com

Example:

_chat._tcp.domain-name.com.

ttl Integer Optional Number of seconds the record needs to be cached by the DNS Resolvers. Default value is 14400.
priority Integer Optional The Priority of the host. Value ranges from 0 to 65535.
port Integer Optional The port number of the service
weight Integer Optional A relative weight for records with the same priority

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/dns/manage/add-srv-record.json?auth-userid=0&api-key=key&domain-name=domain.asia&host=_chat._tcp.domain-name.com&value=chat.domain.com

Response

Returns "Success" as the status of the response if the record is added successfully.

In case of any error, an "error" key with error description (as value) will be returned.