Loading...

Knowledge Base

Modify IPv4 Address (A) Records Using the API

When you want to update an IPv4 Address (A) DNS record. This article explains how to modify A records for a domain using the API, including host values, IP address changes, and TTL configuration.

Modifying IPv4 Address Record

Description

Modifies an IPv4 Address (A) record.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
domain-nameStringRequiredDomain name for which you want to modify the A record
hostStringOptional

The host for which you need to modify the A record

Example:

You may send this as www, if u wish to modify the A record for www.domainname.com.

current-valueStringRequiredCurrent IPv4 address
new-valueStringRequiredNew IPv4 address
ttlIntegerOptionalNumber of seconds the record needs to be cached by the DNS Resolvers. Default value is 14400.

HTTP Method

POST

Example Test URL Request


https://test.httpapi.com/api/dns/manage/update-ipv4-record.json?auth-userid=0&api-key=key&domain-name=domain.asia&current-value=0.0.0.0&new-value=1.1.1.1

Response

Returns a status key with value as Success if the record is modified successfully.

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.