Login

Change GEO record

HTTP method

PUT

URL

https://api.zilore.com/dns/v1/domains/{domain_name}/geo/{record_id}

Request parameters

Parameter

Description

domain_name

Domain name. Must conform to the standard. Names of national domains must be passed in Punycode format.

record_id

Identifier of record to edit, from list_geo_records

Additional parameters

Parameter

Description

geo_region

GEO-identifier of the record from geo_records

record_value

Record value for the region. Must conform to the standard. Names of national domains must be passed in Punycode format. The format of the value depends on the record type.

Record value formats by type:

  • A - Format: IPv4 address,
    Example: 203.0.113.1
  • AAAA - Format: IPv6 address,
    Example: 2001:0db8:0000:0000:0000:0000:0000:0000
  • CNAME - Format: Domain name,
    Example: www.example.com
  • ALIAS - Format: Domain name,
    Example: www.example.com

Request example

PUT https://api.zilore.com/dns/v1/domains/example.com/geo/65426
X-Auth-Key: 6fac94db-691b-ec08-d22c-00000b7c06c0
Content-Type: application/x-www-form-urlencoded

record_value=1.1.1.101

Response example

{
"status": "ok",
"response": {
"record_id": "65426",
"record_status": "updated"
}
}