Adding MX Record

KB Tags associated with this article:
Use all tags
KB Tags
Body

Description

Adds a Mail Exchanger (MX) record.

HTTP Method

POST

Example Test URL Request

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

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 MX record
value String Required A Fully Qualified Domain Name (FQDN) as the destination
host String Optional

The host part of the domain-name for which you need to add an MX. By default, MX record gets added for the domain name.

Example:

You may send this as "mail", if u wish to add the MX record as mail.domainname.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 MX record

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.