Domain Setup
Accessing your web app using only an IP address is not user-friendly. To make your web app accessible through your domain, register your domain and attach the domain to the IP address.
There are five steps to complete this process to set up a domain for your app on the Lightsail platform.
- Buy and register your own domain
- Create a DNS zone in the Lightsail console (Obtain NS records)
- Assign the domain to the static IP address in the Lightsail console (Adding an A record to the DNS zone)
- Register the NS records at the DNS hosting provider
- Adjust Django and Nginx settings
Buy and register your own domain
If you don't have your domain, you must buy it from a registrar who manages and sells domains. As registrars often manage and host domains on their DNS servers, they are also called DNS hosting providers.
There are many providers. You can choose any of them. Amazon also provides a domain service called Route 53.
Usually, domains with '.com' are less available and more expensive. Cheap domains are available for less than $10 per year. For practice purposes, a cheap one is enough, but you need to make sure it won't be auto-renewed, or else you may get unexpected charges in the future.
Create a DNS zone in the Lightsail console
(Obtain NS records)
Once you get your own domain, you can register it and create a DNS zone in the Lightsail console. In the following steps, we assume that you bought a domain other than Amazon Route 53.
From the home page (not from the instance page), select the Domain & DNS tab. Click on the Create DNS zone button.
Subscribe now for
uninterrupted access.