../

My DNS configuration

  • I am not really sure this is the best way to configure DNS but this works for me

A and AAA records

  • I have two A records
  • This converts a domain to IPv4 address
    • I point my root domain @ to my server’s IP address
    • I also create another A record with my hostname that points to my server’s IP
      • Example would be eu-west2-db01.deebakkarthi.com pointing to my IP
  • I do the same for AAA records
  • This converts a domain to IPv6 address

CNAME records

  • I create a CNAME record for every subdomain that I intend to use
  • For example if I wanted to use myriad.deebakkarthi.com I create a CNAME record from myriad.deebakkarthi.com to eu-east3-app01.deebakkarthi.com

Rationale?

  • The rationale is apparently to not mess with IP address when dealing with subdomains
  • Suppose I have some app1.deebakkarthi.com and I want it to run on a machine name us-west3-app03.deebakkarthi.com. Then I create a CNAME linking them.
  • If I ever change the location of us-west3-app03.deebakkarthi.com, I only need to alter its A record (which seems to the natural thing to do). All the services deployed on that server will automatically point to the new address