PTR API (1.0.0)
Managing Pointer (PTR) records that enable reverse DNS mapping for public IP addresses
List PTR records
Returns a paginated list of PTR records. By default, the maximum number of records returned in the response is 1000.
To work with a larger number of records, you need to use the limit and offset parameters.
Authorizations:
query Parameters
limit | integer (Limit) >= 1 Default: 1000 Maximum number of items to return in response. Used for pagination. |
offset | integer (Offset) >= 0 Default: 0 Number of items to skip. Used for pagination. |
filter | string (Filter) Filter PTR records by domain name. |
only-count | boolean (Only-Count) Default: false Return only the total count of PTR records. |
Responses
Response samples
- 200
- 400
- 401
- 422
- 500
[- {
- "id": 0,
- "content": "string",
- "ip": "string",
- "user_id": 0,
- "ttl": 0
}
]
Create PTR record
Creates a PTR record using the provided attributes.
Authorizations:
Request Body schema: application/jsonrequired
ip required | string (Ip) IP address for which the PTR record is created. |
content | string (Content) [ 2 .. 65534 ] characters Default: "" Domain name that the IP address resolves to. |
ttl | integer (Ttl) [ 60 .. 604800 ] Default: 86400 Time-to-live value for DNS record in seconds. Controls how long DNS resolvers cache this record. |
Responses
Request samples
- Payload
{- "ip": "string",
- "content": "",
- "ttl": 86400
}
Response samples
- 200
- 400
- 401
- 409
- 422
- 500
{- "id": 0,
- "content": "string",
- "ip": "string",
- "user_id": 0,
- "ttl": 0
}
Retrieve PTR records information
Returns information about a specified PTR record.
Authorizations:
path Parameters
ptr_id required | integer (Ptr Id) PTR record identifier. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "id": 0,
- "content": "string",
- "ip": "string",
- "user_id": 0,
- "ttl": 0
}
Update PTR record
Updates one or more attributes of the specified PTR record.
Authorizations:
path Parameters
ptr_id required | integer (Ptr Id) PTR record identifier. |
Request Body schema: application/jsonrequired
ip | string (Ip) New IP address for the PTR record. |
content | string (Content) New domain name that the IP should resolve to. |
Responses
Request samples
- Payload
{- "ip": "string",
- "content": "string"
}
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "id": 0,
- "content": "string",
- "ip": "string",
- "user_id": 0,
- "ttl": 0
}