Bootstrap FreeKB - Amazon Web Services (AWS) - List Route 53 Domains using the AWS CLI
Amazon Web Services (AWS) - List Route 53 Domains using the AWS CLI


This assumes you have already configured the aws command line tool. If not, check out my article on Getting Started with the AWS CLI.

The aws route53domains list-domains command can be used to list the Route 53 Domain you have registered.

~]$ aws route53domains list-domains
{
    "Domains": [
        {
            "DomainName": "example.com",
            "AutoRenew": false,
            "TransferLock": false,
            "Expiry": "2024-03-15T20:48:06.797000-05:00"
        }
    ]
}

 

And here is an example of how to limit the output using the --query option.

aws route53domains list-domains --query 'Domains[?DomainName==`example.com`]'

 

The aws route53domains get-domain-detail command can be used to display more information about the domain.

aws route53domains get-domain-detail --domain-name example.com

 

Which should return something like this.

{
    "DomainName": "example.com",
    "Nameservers": [
        {
            "Name": "ns-550.awsdns-04.net",
            "GlueIps": []
        },
        {
            "Name": "ns-499.awsdns-62.com",
            "GlueIps": []
        },
        {
            "Name": "ns-1687.awsdns-18.co.uk",
            "GlueIps": []
        },
        {
            "Name": "ns-1193.awsdns-21.org",
            "GlueIps": []
        }
    ],
    "AutoRenew": false,
    "AdminContact": {
        "FirstName": "John",
        "LastName": "Doe",
        "ContactType": "PERSON",
        "AddressLine1": "123 any street",
        "AddressLine2": "",
        "City": "Guam",
        "State": "CA",
        "CountryCode": "US",
        "ZipCode": "90210",
        "PhoneNumber": "+1.9201234567",
        "Email": "john.doe@example.com",
        "ExtraParams": []
    },
    "RegistrantContact": {
        "FirstName": "John",
        "LastName": "Doe",
        "ContactType": "PERSON",
        "AddressLine1": "123 any street",
        "AddressLine2": "",
        "City": "Guam",
        "State": "CA",
        "CountryCode": "US",
        "ZipCode": "90210",
        "PhoneNumber": "+1.9201234567",
        "Email": "john.doe@example.com",
        "ExtraParams": []
    },
    "TechContact": {
        "FirstName": "John",
        "LastName": "Doe",
        "ContactType": "PERSON",
        "AddressLine1": "123 any street",
        "AddressLine2": "",
        "City": "Guam",
        "State": "CA",
        "CountryCode": "US",
        "ZipCode": "90210",
        "PhoneNumber": "+1.9201234567",
        "Email": "john.doe@example.com",
        "ExtraParams": []
    },
    "AdminPrivacy": true,
    "RegistrantPrivacy": true,
    "TechPrivacy": true,
    "RegistrarName": "Amazon Registrar, Inc.",
    "WhoIsServer": "whois.registrar.amazon.com",
    "RegistrarUrl": "http://registrar.amazon.com",
    "AbuseContactEmail": "abuse@registrar.amazon.com",
    "AbuseContactPhone": "+1.2062661000",
    "CreationDate": "2023-03-15T20:48:06.797000-05:00",
    "UpdatedDate": "2023-03-30T20:00:51.603000-05:00",
    "ExpirationDate": "2024-03-15T20:48:06.797000-05:00",
    "StatusList": [
        "clientHold"
    ]
}

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 205842 in the box below so that we can be sure you are a human.