stevland
Basic Pleskian
- Server operating system version
- CentOS Linux 7.9.2009 (Core)
- Plesk version and microupdate number
- Plesk Obsidian Version 18.0.51
I use curl to get a DNS record from my Plesk server:
result:
But what if I only want 123.123.123.123?
Code:
curl -X GET -H 'authorization: Basic xxx' -H 'accept: application/json' 'https://example.com:8443/api/v2/dns/records/15781/'
result:
Code:
{
"id": 15781,
"type": "A",
"host": "home.example.com",
"value": "123.123.123.123",
"opt": "",
"ttl": 600
}
But what if I only want 123.123.123.123?