pem.getDNSRecords

This method is supported by Operations starting from version 5.5

This method returns DNS Records of a specified Domain.

The method has the following input parameters:

Name

Type

Short Description

name

string

Domain name.

rr_type

string

Type of DNS Records to return.

  • Empty value – All DNS Records are returned.
  • AA DNS Record is returned.
  • AAAAAAAA DNS Record is returned.
  • CNAMECNAME DNS Record is returned.
  • TXTTXT DNS Record is returned.
  • MXMX DNS Record is returned.
  • SRVSRV DNS Record is returned.
  • NSNS DNS Record is returned.

The method returns the array of structures:

Name

Type

Short Description

domain_id

int

ID of Domain.

record_id

int

DNS record ID.

host

string

Name of the domain which DNS Record is related to.

ttl

int

Maximum time interval during which this record can be stored in cache.

Note: In case default value is set, the '0' value will be returned.

rr_type

string

Type of DNS Record.

data

string

Value of DNS Record.

active

boolean

Indicates whether the Record is active.

Note: The NS record is not shown because this record is 'virtual' and does not exist in the dns_resource_records table.