../
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
Arecords - This converts a domain to IPv4 address
- I point my root domain
@to my server’s IP address - I also create another
Arecord with myhostnamethat points to my server’s IP- Example would be
eu-west2-db01.deebakkarthi.compointing to my IP
- Example would be
- I point my root domain
- I do the same for
AAArecords - This converts a domain to IPv6 address
CNAME records
- I create a
CNAMErecord for every subdomain that I intend to use - For example if I wanted to use
myriad.deebakkarthi.comI create a CNAME record frommyriad.deebakkarthi.comtoeu-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.comand I want it to run on a machine nameus-west3-app03.deebakkarthi.com. Then I create aCNAMElinking them. - If I ever change the location of
us-west3-app03.deebakkarthi.com, I only need to alter itsArecord (which seems to the natural thing to do). All the services deployed on that server will automatically point to the new address