를 사용하여 Route 53 도메인 등록 예제 AWS CLI - AWS Command Line Interface

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

를 사용하여 Route 53 도메인 등록 예제 AWS CLI

다음 코드 예제에서는 Route 53 도메인 등록과 AWS Command Line Interface 함께 를 사용하여 작업을 수행하고 일반적인 시나리오를 구현하는 방법을 보여줍니다.

작업은 대규모 프로그램에서 발췌한 코드이며 컨텍스트에 맞춰 실행해야 합니다. 작업은 개별 서비스 함수를 직접적으로 호출하는 방법을 보여주며 관련 시나리오의 컨텍스트에 맞는 작업을 볼 수 있습니다.

각 예제에는 컨텍스트에서 코드를 설정하고 실행하는 방법에 대한 지침을 찾을 수 있는 전체 소스 코드에 대한 링크가 포함되어 있습니다.

주제

작업

다음 코드 예시에서는 check-domain-availability을 사용하는 방법을 보여 줍니다.

AWS CLI

Route 53에 도메인 이름을 등록할 수 있는지 확인하려면

다음 check-domain-availability 명령은 Route 53을 사용하여 도메인 이름을 등록할 수 있는지 여부에 example.com 대한 정보를 반환합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains check-domain-availability \ --region us-east-1 \ --domain-name example.com

출력:

{ "Availability": "UNAVAILABLE" }

Route 53은 .com 및 와 같은 많은 수의 최상위 도메인(TLDs)을 지원하지만 .jp사용 가능한 를 모두 지원하지는 않습니다TLDs. 도메인의 가용성을 확인하고 Route 53이 를 지원하지 않는 경우 는 다음 메시지를 TLD check-domain-availability 반환합니다.

An error occurred (UnsupportedTLD) when calling the CheckDomainAvailability operation: <top-level domain> tld is not supported.

Route 53에 도메인을 등록할 때 사용할 수 TLDs 있는 의 목록은 Amazon Route 53 개발자 안내서의 Amazon Route 53에 등록할 수 있는 도메인을 참조하세요. Amazon Route 53 Amazon Route 53에 도메인 등록에 대한 자세한 내용은 Amazon Route 53 개발자 안내서새 도메인 등록을 참조하세요.

다음 코드 예시에서는 check-domain-transferability을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인을 Route 53으로 전송할 수 있는지 확인하려면

다음 check-domain-transferability 명령은 도메인 이름을 Route 53으로 전송할 수 있는지 여부에 대한 정보를 반환example.com합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains check-domain-transferability \ --region us-east-1 \ --domain-name example.com

출력:

{ "Transferability": { "Transferable": "UNTRANSFERABLE" } }

자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53에 도메인 등록 전송을 참조하세요. Amazon Route 53

다음 코드 예시에서는 delete-tags-for-domain을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인의 태그를 삭제하려면

다음 delete-tags-for-domain 명령은 지정된 도메인에서 세 개의 태그를 삭제합니다. 태그 값이 아닌 태그 키만 지정합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains delete-tags-for-domain \ --region us-east-1 \ --domain-name example.com \ --tags-to-delete accounting-key hr-key engineering-key

이 명령은 출력을 생성하지 않습니다.

태그가 삭제되었는지 확인하기 위해 list-tags-for-domain 를 실행할 수 있습니다. 자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53 리소스 태그 지정을 참조하세요. Amazon Route 53

  • 자세한 API 내용은 명령 참조DeleteTagsForDomain의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 disable-domain-auto-renew을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인의 자동 갱신을 비활성화하려면

다음 disable-domain-auto-renew 명령은 도메인에 대한 등록이 만료되기 example.com 전에 도메인을 자동으로 갱신하지 않도록 Route 53을 구성합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains disable-domain-auto-renew \ --region us-east-1 \ --domain-name example.com

이 명령은 출력을 생성하지 않습니다.

설정이 변경되었는지 확인하기 위해 get-domain-detail 를 실행할 수 있습니다. 자동 갱신이 비활성화된 경우 의 값은 AutoRenew입니다False. 자동 갱신에 대한 자세한 내용은 Amazon Route 53 개발자 안내서의 도메인 등록 갱신 <https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-renew.html을 참조하세요.

다음 코드 예시에서는 disable-domain-transfer-lock을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인에서 전송 잠금을 비활성화하려면

다음 disable-domain-transfer-lock 명령은 도메인의 전송 잠금을 제거하여 도메인을 다른 등록 기관으로 전송할 수 example.com 있습니다. 이 명령은 clientTransferProhibited 상태를 변경합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains disable-domain-transfer-lock \ --region us-east-1 \ --domain-name example.com

출력:

{ "OperationId": "3f28e0ac-126a-4113-9048-cc930example" }

전송 잠금이 변경되었는지 확인하려면 get-domain-detail 를 실행할 수 있습니다. 전송 잠금이 비활성화되면 의 값에 가 포함되지 StatusList 않습니다clientTransferProhibited.

전송 프로세스에 대한 자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53에서 다른 레지스트리로 도메인 전송을 참조하세요. Amazon Route 53

다음 코드 예시에서는 enable-domain-auto-renew을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인의 자동 갱신을 활성화하려면

다음 enable-domain-auto-renew 명령은 도메인에 대한 등록이 만료되기 example.com 전에 도메인을 자동으로 갱신하도록 Route 53을 구성합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains enable-domain-auto-renew \ --region us-east-1 \ --domain-name example.com

이 명령은 출력을 생성하지 않습니다. 설정이 변경되었는지 확인하기 위해 get-domain-detail 를 실행할 수 있습니다. 자동 갱신이 활성화된 경우 의 값은 AutoRenew입니다True.

자동 갱신에 대한 자세한 내용은 Amazon Route 53 개발자 안내서의 도메인 등록 갱신 <https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-renew.html을 참조하세요.

다음 코드 예시에서는 enable-domain-transfer-lock을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인에서 전송 잠금을 활성화하려면

다음 enable-domain-transfer-lock 명령은 지정된 도메인을 잠가 다른 등록 기관으로 전송할 수 없도록 합니다. 이 명령은 clientTransferProhibited 상태를 변경합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains enable-domain-transfer-lock \ --region us-east-1 \ --domain-name example.com

출력:

{ "OperationId": "3f28e0ac-126a-4113-9048-cc930example" }

전송 잠금이 변경되었는지 확인하려면 get-domain-detail 를 실행할 수 있습니다. 전송 잠금이 활성화되면 의 값에 가 StatusList 포함됩니다clientTransferProhibited.

전송 프로세스에 대한 자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53에서 다른 레지스트리로 도메인 전송을 참조하세요. Amazon Route 53

다음 코드 예시에서는 get-contact-reachability-status을 사용하는 방법을 보여 줍니다.

AWS CLI

등록자 연락 담당자가 확인 이메일에 응답했는지 확인하려면

다음 get-contact-reachability-status 명령은 지정된 도메인의 등록자 연락 담당자가 확인 이메일에 응답했는지 여부에 대한 정보를 반환합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains get-contact-reachability-status \ --region us-east-1 \ --domain-name example.com

출력:

{ "domainName": "example.com", "status": "DONE" }

자세한 내용은 Amazon Route 53 개발자 안내서승인 및 확인 이메일 재전송을 참조하세요.

다음 코드 예시에서는 get-domain-detail을 사용하는 방법을 보여 줍니다.

AWS CLI

지정된 도메인에 대한 자세한 정보를 가져오려면

다음 get-domain-detail 명령은 지정된 도메인에 대한 자세한 정보를 표시합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains get-domain-detail \ --region us-east-1 \ --domain-name example.com

출력:

{ "DomainName": "example.com", "Nameservers": [ { "Name": "ns-2048.awsdns-64.com", "GlueIps": [] }, { "Name": "ns-2049.awsdns-65.net", "GlueIps": [] }, { "Name": "ns-2050.awsdns-66.org", "GlueIps": [] }, { "Name": "ns-2051.awsdns-67.co.uk", "GlueIps": [] } ], "AutoRenew": true, "AdminContact": { "FirstName": "Saanvi", "LastName": "Sarkar", "ContactType": "COMPANY", "OrganizationName": "Example", "AddressLine1": "123 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "ssarkar@example.com", "ExtraParams": [] }, "RegistrantContact": { "FirstName": "Alejandro", "LastName": "Rosalez", "ContactType": "COMPANY", "OrganizationName": "Example", "AddressLine1": "123 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "arosalez@example.com", "ExtraParams": [] }, "TechContact": { "FirstName": "Wang", "LastName": "Xiulan", "ContactType": "COMPANY", "OrganizationName": "Example", "AddressLine1": "123 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "wxiulan@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": 1444934889.601, "ExpirationDate": 1602787689.0, "StatusList": [ "clientTransferProhibited" ] }
  • 자세한 API 내용은 명령 참조GetDomainDetail의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 get-domain-suggestions을 사용하는 방법을 보여 줍니다.

AWS CLI

제안된 도메인 이름 목록을 가져오려면

다음 get-domain-suggestions 명령은 도메인 이름 에 따라 제안된 도메인 이름 목록을 표시합니다example.com. 응답에는 사용 가능한 도메인 이름만 포함됩니다. 이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains get-domain-suggestions \ --region us-east-1 \ --domain-name example.com \ --suggestion-count 10 \ --only-available

출력:

{ "SuggestionsList": [ { "DomainName": "egzaampal.com", "Availability": "AVAILABLE" }, { "DomainName": "examplelaw.com", "Availability": "AVAILABLE" }, { "DomainName": "examplehouse.net", "Availability": "AVAILABLE" }, { "DomainName": "homeexample.net", "Availability": "AVAILABLE" }, { "DomainName": "examplelist.com", "Availability": "AVAILABLE" }, { "DomainName": "examplenews.net", "Availability": "AVAILABLE" }, { "DomainName": "officeexample.com", "Availability": "AVAILABLE" }, { "DomainName": "exampleworld.com", "Availability": "AVAILABLE" }, { "DomainName": "exampleart.com", "Availability": "AVAILABLE" } ] }

다음 코드 예시에서는 get-operation-detail을 사용하는 방법을 보여 줍니다.

AWS CLI

작업의 현재 상태를 가져오려면

일부 도메인 등록 작업은 비동기적으로 작동하고 응답을 완료하기 전에 반환합니다. 이러한 작업은 현재 상태를 가져오는 데 사용할 수 있는 작업 ID를 반환합니다. 다음 get-operation-detail 명령은 지정된 작업의 상태를 반환합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains get-operation-detail \ --region us-east-1 \ --operation-id edbd8d63-7fe7-4343-9bc5-54033example

출력:

{ "OperationId": "edbd8d63-7fe7-4343-9bc5-54033example", "Status": "SUCCESSFUL", "DomainName": "example.com", "Type": "DOMAIN_LOCK", "SubmittedDate": 1573749367.864 }
  • 자세한 API 내용은 명령 참조GetOperationDetail의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 list-domains을 사용하는 방법을 보여 줍니다.

AWS CLI

현재 AWS 계정에 등록된 도메인을 나열하려면

다음 list-domains 명령은 현재 AWS 계정에 등록된 도메인에 대한 요약 정보를 나열합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains list-domains --region us-east-1

출력:

{ "Domains": [ { "DomainName": "example.com", "AutoRenew": true, "TransferLock": true, "Expiry": 1602712345.0 }, { "DomainName": "example.net", "AutoRenew": true, "TransferLock": true, "Expiry": 1602723456.0 }, { "DomainName": "example.org", "AutoRenew": true, "TransferLock": true, "Expiry": 1602734567.0 } ] }
  • 자세한 API 내용은 명령 참조ListDomains의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 list-operations을 사용하는 방법을 보여 줍니다.

AWS CLI

작업 ID를 반환하는 작업의 상태를 나열하려면

일부 도메인 등록 작업은 비동기적으로 실행되고 응답을 완료하기 전에 반환합니다. 이러한 작업은 현재 상태를 가져오는 데 사용할 수 있는 작업 ID를 반환합니다. 다음 list-operations 명령은 현재 도메인 등록 작업에 대한 상태를 포함한 요약 정보를 나열합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains list-operations --region us-east-1

출력:

{ "Operations": [ { "OperationId": "aab9822f-1da0-4bf3-8a15-fd4e0example", "Status": "SUCCESSFUL", "Type": "DOMAIN_LOCK", "SubmittedDate": 1455321739.986 }, { "OperationId": "c24379ed-76be-42f8-bdad-9379bexample", "Status": "SUCCESSFUL", "Type": "UPDATE_NAMESERVER", "SubmittedDate": 1468960475.109 }, { "OperationId": "f47e1297-ef9e-4c2b-ae1e-a5fcbexample", "Status": "SUCCESSFUL", "Type": "RENEW_DOMAIN", "SubmittedDate": 1473561835.943 }, { "OperationId": "75584f23-b15f-459e-aed7-dc6f5example", "Status": "SUCCESSFUL", "Type": "UPDATE_DOMAIN_CONTACT", "SubmittedDate": 1547501003.41 } ] }

출력에는 작업 ID를 반환하고 현재 AWS 계정을 사용하여 등록한 적이 있는 모든 도메인에서 수행한 모든 작업이 포함됩니다. 지정된 날짜 이후에 제출한 작업만 가져오려면 submitted-since 파라미터를 포함하고 날짜를 Unix 형식과 Coordinated Universal Time()으로 지정할 수 있습니다UTC. 다음 명령은 2020년 1UTC월 1일 오전 12시 이후에 제출된 모든 작업의 상태를 가져옵니다.

aws route53domains list-operations \ --submitted-since 1577836800
  • 자세한 API 내용은 명령 참조ListOperations의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 list-tags-for-domain을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인의 태그를 나열하려면

다음 list-tags-for-domain 명령은 현재 지정된 도메인과 연결된 태그를 나열합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains list-tags-for-domain \ --region us-east-1 \ --domain-name example.com

출력:

{ "TagList": [ { "Key": "key1", "Value": "value1" }, { "Key": "key2", "Value": "value2" } ] }

자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53 리소스 태그 지정을 참조하세요. Amazon Route 53

  • 자세한 API 내용은 명령 참조ListTagsForDomain의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 register-domain을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인을 등록하려면

다음 register-domain 명령은 도메인을 등록하고 JSON형식이 지정된 파일에서 모든 파라미터 값을 검색합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains register-domain \ --region us-east-1 \ --cli-input-json file://register-domain.json

register-domain.json의 콘텐츠:

{ "DomainName": "example.com", "DurationInYears": 1, "AutoRenew": true, "AdminContact": { "FirstName": "Martha", "LastName": "Rivera", "ContactType": "PERSON", "OrganizationName": "Example", "AddressLine1": "1 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "mrivera@example.com" }, "RegistrantContact": { "FirstName": "Li", "LastName": "Juan", "ContactType": "PERSON", "OrganizationName": "Example", "AddressLine1": "1 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "ljuan@example.com" }, "TechContact": { "FirstName": "Mateo", "LastName": "Jackson", "ContactType": "PERSON", "OrganizationName": "Example", "AddressLine1": "1 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "mjackson@example.com" }, "PrivacyProtectAdminContact": true, "PrivacyProtectRegistrantContact": true, "PrivacyProtectTechContact": true }

출력:

{ "OperationId": "b114c44a-9330-47d1-a6e8-a0b11example" }

작업이 성공했는지 확인하기 위해 를 실행할 수 있습니다get-operation-detail. 자세한 내용은 get-operation-detail 섹션을 참조하세요.

자세한 내용은 Amazon Route 53 개발자 안내서새 도메인 등록을 참조하세요.

에 값이 필요한 최상위 도메인(TLDs)ExtraParams과 유효한 값에 대한 자세한 내용은 Amazon Route 53 참조ExtraParam의 섹션을 참조하세요. Amazon Route 53 API

  • 자세한 API 내용은 명령 참조RegisterDomain의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 renew-domain을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인을 갱신하려면

다음 renew-domain 명령은 지정된 도메인을 5년 동안 갱신합니다. 의 값을 가져오려면 get-domain-detail 명령을 current-expiry-year사용하고 Unix 형식ExpirationDate에서 값을 변환합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains renew-domain \ --region us-east-1 \ --domain-name example.com \ --duration-in-years 5 \ --current-expiry-year 2020

출력:

{ "OperationId": "3f28e0ac-126a-4113-9048-cc930example" }

작업이 성공했는지 확인하기 위해 를 실행할 수 있습니다get-operation-detail. 자세한 내용은 get-operation-detail를 참조하세요.

.com 또는 .org와 같은 각 최상위 도메인(TLD)의 레지스트리는 도메인을 갱신할 수 있는 최대 연도를 제어합니다. 도메인의 최대 갱신 기간을 얻으려면 Amazon Route 53 개발자 안내서의 Amazon Route 53에 등록할 수 있는 도메인TLD에 대한 '등록 및 갱신 기간' 섹션을 참조하세요. Amazon Route 53

자세한 내용은 Amazon Route 53 개발자 안내서도메인 등록 갱신을 참조하세요.

  • 자세한 API 내용은 명령 참조RenewDomain의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 resend-contact-reachability-email을 사용하는 방법을 보여 줍니다.

AWS CLI

등록자 연락의 현재 이메일 주소로 확인 이메일을 재전송하려면

다음 resend-contact-reachability-email 명령은 example.com 도메인의 등록자 연락처에 대한 현재 이메일 주소로 확인 이메일을 재전송합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains resend-contact-reachability-email \ --region us-east-1 \ --domain-name example.com

출력:

{ "domainName": "example.com", "emailAddress": "moliveira@example.com", "isAlreadyVerified": true }

이 예제에서와 true같이 값이 isAlreadyVerified인 경우 등록자 연락처는 지정된 이메일 주소에 연결할 수 있음을 이미 확인했습니다.

자세한 내용은 Amazon Route 53 개발자 안내서권한 부여 및 확인 이메일 재전송을 참조하세요.

다음 코드 예시에서는 retrieve-domain-auth-code을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인을 다른 등록 기관으로 전송할 수 있도록 도메인에 대한 권한 부여 코드를 가져오려면

다음 retrieve-domain-auth-code 명령은 example.com 도메인의 현재 권한 부여 코드를 가져옵니다. 도메인을 해당 등록 기관으로 전송하려는 경우 이 값을 다른 도메인 등록 기관으로 지정합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains retrieve-domain-auth-code \ --region us-east-1 \ --domain-name example.com

출력:

{ "AuthCode": ")o!v3dJeXampLe" }

자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53에서 다른 레지스트리로 도메인 전송을 참조하세요. Amazon Route 53

다음 코드 예시에서는 transfer-domain을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인을 Amazon Route 53으로 전송하려면

다음 transfer-domain 명령은 JSON형식이 지정된 파일 에서 제공하는 파라미터와 함께 도메인을 Route 53으로 전송합니다C:\temp\transfer-domain.json.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains transfer-domain \ --region us-east-1 \ --cli-input-json file://C:\temp\transfer-domain.json

transfer-domain.json의 콘텐츠:

{ "DomainName": "example.com", "DurationInYears": 1, "Nameservers": [ { "Name": "ns-2048.awsdns-64.com" }, { "Name": "ns-2049.awsdns-65.net" }, { "Name": "ns-2050.awsdns-66.org" }, { "Name": "ns-2051.awsdns-67.co.uk" } ], "AuthCode": ")o!v3dJeXampLe", "AutoRenew": true, "AdminContact": { "FirstName": "Martha", "LastName": "Rivera", "ContactType": "PERSON", "OrganizationName": "Example", "AddressLine1": "1 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "mrivera@example.com" }, "RegistrantContact": { "FirstName": "Li", "LastName": "Juan", "ContactType": "PERSON", "OrganizationName": "Example", "AddressLine1": "1 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "ljuan@example.com" }, "TechContact": { "FirstName": "Mateo", "LastName": "Jackson", "ContactType": "PERSON", "OrganizationName": "Example", "AddressLine1": "1 Main Street", "City": "Anytown", "State": "WA", "CountryCode": "US", "ZipCode": "98101", "PhoneNumber": "+1.8005551212", "Email": "mjackson@example.com" }, "PrivacyProtectAdminContact": true, "PrivacyProtectRegistrantContact": true, "PrivacyProtectTechContact": true }

출력:

{ "OperationId": "b114c44a-9330-47d1-a6e8-a0b11example" }

작업이 성공했는지 확인하기 위해 를 실행할 수 있습니다get-operation-detail. 자세한 내용은 get-operation-detail 섹션을 참조하세요.

자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53에 도메인 등록 전송을 참조하세요. Amazon Route 53

  • 자세한 API 내용은 명령 참조TransferDomain의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 update-domain-contact-privacy을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인의 연락처에 대한 개인 정보 보호 설정을 업데이트하려면

다음 update-domain-contact-privacy 명령은 example.com 도메인의 관리 연락처에 대한 프라이버시 보호를 끕니다. 이 명령은 us-east-1 리전에서만 실행됩니다.

기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains update-domain-contact-privacy \ --region us-east-1 \ --domain-name example.com \ --no-admin-privacy

출력:

{ "OperationId": "b3a219e9-d801-4244-b533-b7256example" }

작업이 성공했는지 확인하기 위해 를 실행할 수 있습니다get-operation-detail. 자세한 내용은 get-operation-detail 섹션을 참조하세요.

자세한 내용은 Amazon Route 53 개발자 안내서도메인에 대한 연락처 정보에 대한 프라이버시 보호 활성화 또는 비활성화를 참조하세요.

다음 코드 예시에서는 update-domain-contact을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인의 연락처 정보를 업데이트하려면

다음 update-domain-contact 명령은 도메인의 연락처 정보를 업데이트하여 JSON형식이 지정된 파일 에서 파라미터를 가져옵니다C:\temp\update-domain-contact.json.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains update-domain-contact \ --region us-east-1 \ --cli-input-json file://C:\temp\update-domain-contact.json

update-domain-contact.json의 콘텐츠:

{ "AdminContact": { "AddressLine1": "101 Main Street", "AddressLine2": "Suite 1a", "City": "Seattle", "ContactType": "COMPANY", "CountryCode": "US", "Email": "w.xiulan@example.com", "FirstName": "Wang", "LastName": "Xiulan", "OrganizationName": "Example", "PhoneNumber": "+1.8005551212", "State": "WA", "ZipCode": "98101" }, "DomainName": "example.com", "RegistrantContact": { "AddressLine1": "101 Main Street", "AddressLine2": "Suite 1a", "City": "Seattle", "ContactType": "COMPANY", "CountryCode": "US", "Email": "w.xiulan@example.com", "FirstName": "Wang", "LastName": "Xiulan", "OrganizationName": "Example", "PhoneNumber": "+1.8005551212", "State": "WA", "ZipCode": "98101" }, "TechContact": { "AddressLine1": "101 Main Street", "AddressLine2": "Suite 1a", "City": "Seattle", "ContactType": "COMPANY", "CountryCode": "US", "Email": "w.xiulan@example.com", "FirstName": "Wang", "LastName": "Xiulan", "OrganizationName": "Example", "PhoneNumber": "+1.8005551212", "State": "WA", "ZipCode": "98101" } }

출력:

{ "OperationId": "b3a219e9-d801-4244-b533-b7256example" }

작업이 성공했는지 확인하기 위해 get-domain-detail 를 실행할 수 있습니다. 자세한 내용은 Amazon Route 53 개발자 안내서도메인에 대한 연락처 정보 업데이트를 참조하세요.

  • 자세한 API 내용은 명령 참조UpdateDomainContact의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 update-domain-nameservers을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인의 이름 서버를 업데이트하려면

다음 update-domain-nameservers 명령은 도메인의 이름 서버를 업데이트합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains update-domain-nameservers \ --region us-east-1 \ --domain-name example.com \ --nameservers Name=ns-1.awsdns-01.org Name=ns-2.awsdns-02.co.uk Name=ns-3.awsdns-03.net Name=ns-4.awsdns-04.com

출력:

{ "OperationId": "f1691ec4-0e7a-489e-82e0-b19d3example" }

작업이 성공했는지 확인하기 위해 get-domain-detail 를 실행할 수 있습니다.

자세한 내용은 Amazon Route 53 개발자 안내서도메인에 대한 이름 서버 및 Glue 레코드 추가 또는 변경을 참조하세요.

다음 코드 예시에서는 update-tags-for-domain을 사용하는 방법을 보여 줍니다.

AWS CLI

도메인에 대한 태그를 추가하거나 업데이트하려면

다음 update-tags-for-domain 명령은 두 개의 키와 example.com 도메인에 해당하는 값을 추가하거나 업데이트합니다. 키 값을 업데이트하려면 키와 새 값을 포함하면 됩니다. 한 번에 하나의 도메인에서만 태그를 추가하거나 업데이트할 수 있습니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains update-tags-for-domain \ --region us-east-1 \ --domain-name example.com \ --tags-to-update "Key=key1,Value=value1" "Key=key2,Value=value2"

이 명령은 출력을 생성하지 않습니다. 태그가 추가 또는 업데이트되었는지 확인하려면 list-tags-for-domain 를 실행할 수 있습니다.

자세한 내용은 Amazon Route 53 개발자 안내서의 Amazon Route 53 리소스 태그 지정을 참조하세요. Amazon Route 53

  • 자세한 API 내용은 명령 참조UpdateTagsForDomain의 섹션을 참조하세요. AWS CLI

다음 코드 예시에서는 view-billing을 사용하는 방법을 보여 줍니다.

AWS CLI

현재 AWS 계정의 도메인 등록 요금에 대한 결제 정보를 가져오려면

다음 view-billing 명령은 2018년 1월 1일(1514764800 Unix 시간)부터 2019년 12월 31일 자정(1577836800 Unix 시간)까지의 기간 동안 현재 계정에 대한 모든 도메인 관련 결제 레코드를 반환합니다.

이 명령은 us-east-1 리전에서만 실행됩니다. 기본 리전이 로 설정된 경우 region 파라미터를 생략할 us-east-1수 있습니다.

aws route53domains view-billing \ --region us-east-1 \ --start-time 1514764800 \ --end-time 1577836800

출력:

{ "BillingRecords": [ { "DomainName": "example.com", "Operation": "RENEW_DOMAIN", "InvoiceId": "149962827", "BillDate": 1536618063.181, "Price": 12.0 }, { "DomainName": "example.com", "Operation": "RENEW_DOMAIN", "InvoiceId": "290913289", "BillDate": 1568162630.884, "Price": 12.0 } ] }

자세한 내용은 Amazon Route 53 참조ViewBilling의 섹션을 참조하세요. Amazon Route 53 API

  • 자세한 API 내용은 명령 참조ViewBilling의 섹션을 참조하세요. AWS CLI