The Creation and Routing of blindgumption.com
In this article, I'll describe how I purchased the blindgumption.com domain name and the configuration involved in getting a browser's query directed to my host in Digital Ocean. It is very high level with links to follow for more details.
The more you know about the Domain Name System (DNS) the easier it will be to follow this article. However, fully following this article isn't very important unless you plan to get your own domain name and want to point it to a host in some cloud environment. I'll not go into great depth partly because this step can be skipped, though I'd recommend not skipping it, but mostly because there is so much really good information elsewhere..
In a very small nutshell, DNS is used to map a domain name, e.g., blindgumption.com, to an IP address. IP addresses are used to create connections between computers and send data, e.g., requests for documents and responses with the requested document.
Another good resource for learning enough about DNS to follow this article is the book "Learning Core DNS" (find it here (if you have a bookshare.org account): "Learning Core DNS" on Bookshare. . I know DNS at a somewhat high level and was able to do what I needed to do after reading chapter two of that book. And if you ever want to stand up a much more complicated backend environment, Core DNS might be a good option for some routing and discovery functionality.
First, Get Thee to a Registrar
Back again to Wikipedia to learn about Registrars. There's another good, a little shorter with a nice analogy, article from Cloudflare regarding Registrars. Cloudflare is a comercial company and has a lot of good articles on DNS, it can be a little painful to sift through the cruft to find the actual article though.
It's not critical to know great details about Domain Name Registrars, just know you'll need to use one to acquire your domain name. I've had an account at GoDaddy for years, so I used that. The GoDaddy website fails in many ways on accessibility, but the phone support is usually good. I could search to determine the blindgumption.com domain name was available then called to purchase it . At the time of purchasing the domain name, I also had them configure NS DNS records to point to DigitalOcean's name servers.
I only mention GoDaddy because that's what I used. I suggest you fire up your favorite search engine and choose a Registrar that suits you. Every time I've spoken to GoDaddy support I mention the site is not accessible. I have not seen any changes over at least two years. I really should move my domains if they're not taking accessiblity seriously.
Now I have the domain name I want and DNS queries to the Registrar will tell the DNS resolver (the code probably running in your browser trying to find the IP address for a given domain name) to go to DigitalOcean. I'm done with the Registrar. It's time to configure my domain on DigitalOcean.
Configure the blindgumption.com domain in DigitalOcean
As of September, 2020, creating a new domain in DigitalOcean was a very easy process. I found, and clicked the create button, clicked the DNS/Domains link, entered "blindgumption.com" in the edit box, pressed the button and boom, I have the beginnings of a zone file for blindgumption.com. Fortunately, you don't have to edit the zone file directly, it's presented as a table with each entry as a row. pressing 't' takes you directly to the table and it's easy to navigate in the standard screen reader way.
Now I have the intial zone file, I need to add records to point blindgumption.com to a specific host. This is where you will need to have already created the host to get the IP address(es. If you haven't created the host yet, do that then come back here and finish the domain configuration.
This section is where understanding chapter two of "Learning Core DNS" will be helpful. Mostly you need to know an 'A" record maps a domain name to an actual IP address. And a 'CNAME' record is used to create an alias for a domain name.
Note, for simplicity I'm sticking to IPv4 so will not discuss 'AAAA' records other than to say they're like 'A' records but for IPv6. If you're doing anything serious you really should support IPv6 but for the sake of learning the basics of standing up a simple website, IPv4 is fine.
I added an 'A' record to point blindgumption.com to the webserver host. I also created a 'CNAME' record, www.blindgumption.com to be an alias for blindgumption.com. Creating these records was done by pressing the appropriate button for which type of record I wnated to create and filling in a few edit fields. I never had to edit a zone file directly.
Conclusion
That's it. It's straight forward once you understand it (as most things are). Get the domain name, create the domain in your chosen cloud environment (you'll need to create a host if you don't already have one) then add an 'A' record and your good to go.'
Now that you have your domain name pointing to your host, you'll need to configure that host with some kind of HTTP server. That's the next article.