example.com, a valid subdomain can be
api.example.com. This guide will use
cortexlabs.devas the domain and
api.cortexlabs.devas the subdomain.
cortexlabs.devis managed by Google Domains. The image below is a screenshot for adding a DNS record in Google Domains (your UI may differ based on your DNS service provider).
curl http://api.cortexlabs.dev/hello-worldor paste the url into your browser if your API supports GET requests).
curl: (6) Could not resolve host: api.cortexlabs.devwait a few minutes and make the request from another device that hasn't made a request to that url in a while.