Domain & DNS - GreyDelamar/captainduckduck GitHub Wiki

Setup Domain and DNS

To do this, you need to login to the domain provider which you used to purchase your mydomain.com domain. You can use GoDaddy.com or NameCheap.com. If you are first time buyer with GoDaddy, just google for GoDaddy 99 cent domains. You'll find coupons that offer 1-year lease for dot com domains for 99 cents!

After you purchased your domain, look for DNS settings under your domain settings. You should see a table of some sort with various entries. Look for an ADD button. Then fill the entries:

  • Type: A / A-Record
  • Host: *.something Replace with *.anything-you-want
  • Points To: 199.199.199.199 Replace with your server's IP
  • TTL: Pick the smallest TTL available, typically 30 minutes.

This process takes minutes, sometimes hours to take into effect.

To confirm, you can use a DNS lookup tool, like: https://mxtoolbox.com/DNSLookup.aspx Enter some-random-word.something.mydomain.com and check to see if the IP is correct.

Connect Custom Domains to Apps:

Let's say, your pizza.something.yourdomain.com is very popular and you want to take the next step and make it available on www.pizza.com. First you buy the domain! Next, similar to Captain setup, you go to your DNS settings and point www host to your Captain IP address. Alternatively, you can point * to Captain IP address. After doing this, go to Apps section, and enter www.pizza.com as custom domain and click on connect! Done!