CmdID

CmdID / aws / aws lightsail

aws lightsail get-domain

Returns information about a specific domain recordset. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To get information about a domain

The following get-domain example displays details about the domain example.com.

Note: Lightsail's domain-related API operations are available in only the us-east-1 AWS Region. If your CLI profile is configured to use a different Region, you must include the --region us-east-1 parameter or the command fails.

aws lightsail get-domain --domain-name example.com --region us-east-1Identify
--domain-nameThe domain name for which your want to return information about.
--regionThe region to use.
Its output, shortened
{
    "domain": {
        "name": "example.com",
        "arn": "arn:aws:lightsail:global:123456789012:Domain/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
        "supportCode": "6EXAMPLE3362//hostedzone/ZEXAMPLEONGSC1",
        "createdAt": 1570728588.6,
        "location": {
            "availabilityZone": "all",
            "regionName": "global"
        },
        "resourceType": "Domain",
        "tags": [],
        "domainEntries": [
            {
                "id": "-1682899164",
                "name": "example.com",
                "target": "192.0.2.0",
                "isAlias": false,
                "type": "A"
            },
            {
                "id": "1703104243",
                "name": "example.com",
                "target": "ns-137.awsdns-17.com",
                "isAlias": false,
                "type": "NS"
            },
            {
                "id": "-1038331153",
                "name": "example.com",
… 28 more lines

For more information, see Understanding DNS in Lightsail in the Amazon Lightsail User Guide.

Options

1 in the AWS CLI reference
--domain-nameThe domain name for which your want to return information about.