GoDaddy API로 도메인의 nameservers 변경하기

  • Post Author:
  • Post Category:칼럼
  • Post Comments:0 Comments
  • Post last modified:November 9, 2016
  • Test API 서버: api.ote-godaddy.com
  • Production API 서버: api.godaddy.com
DOMAIN_NAME=test.com
API_SERVER=api.godaddy.com
KEY=dKNhhKehqHAZ_QfrdQbFpNu5oB4nyJCPpYH
SECRET=FfriNTpxEdjk5XTBAqAkos

curl -X PATCH -H "Authorization: sso-key ${KEY}:${SECRET}" -H 'Content-Type: application/json' -d '{ "nameServers": [ "ns-cloud-c1.googledomains.com", "ns-cloud-c2.googledomains.com" ] }' https://${API_SERVER}/v1/domains/${DOMAIN_NAME}

참고 문서

Buy me a coffeeBuy me a coffee

최 재훈

Kubernetes, DevSecOps, Golang, 지속적인 통합 등 다양한 주제에 관심이 많다.