How to use cURL to get IPv4 address How to use cURL to get IP...

Topic: How to use cURL to get IPv4 address

Post How to use cURL to get IPv4 address
by Piethorne on 2023年5月2日

Is there a way of using cURL.exe to get the IPv4 address for a 3rd level domain stored in dynu.com, i.e. one that's listed in the control panel, not my actual WAN IP address ?

Thanks for any reply

Reply with quote | Report
Post Re: How to use cURL to get IPv4 address
by timothytw on 2023年5月2日

You can use the API with Curl.

GET /dns/{id}
Get details of a domain for DNS service.

{
"statusCode": 200,
"id": 358362,
"name": "workplace.mywire.org",
"unicodeName": "workplace.mywire.org",
"token": "yc0bia6g92p49061wko1",
"state": "Complete",
"group": "Office",
"ipv4Address": "207.52.45.12",
"ttl": 300,
"ipv4": true,
"ipv6": false,
"ipv4WildcardAlias": false,
"createdOn": "2012-08-09T10:20:50.52Z",
"updatedOn": "2018-07-19T13:42:08.52Z"
}

Reply with quote | Report
Post Re: Re: How to use cURL to get IPv4 address
by Piethorne on 2023年5月2日

timothytw wrote:You can use the API with Curl.

GET /dns/{id}
Get details of a domain for DNS service.

{
"statusCode": 200,
"id": 358362,
"name": "workplace.mywire.org",
"unicodeName": "workplace.mywire.org",
"token": "yc0bia6g92p49061wko1",
"state": "Complete",
"group": "Office",
"ipv4Address": "207.52.45.12",
"ttl": 300,
"ipv4": true,
"ipv6": false,
"ipv4WildcardAlias": false,
"createdOn": "2012-08-09T10:20:50.52Z",
"updatedOn": "2018-07-19T13:42:08.52Z"
}
Sorted now 😁 Many thanks for the pointer.

Reply with quote | Report
2024年11月22日 16:08
Loading...