{"id":2485,"date":"2021-09-06T21:39:08","date_gmt":"2021-09-06T21:39:08","guid":{"rendered":"https:\/\/teza.blog\/?p=2485"},"modified":"2023-10-15T04:46:44","modified_gmt":"2023-10-15T04:46:44","slug":"dns-basics","status":"publish","type":"post","link":"https:\/\/teza.blog\/index.php\/2021\/09\/06\/dns-basics\/","title":{"rendered":"DNS demystified"},"content":{"rendered":"\n<p>A lot of the time, when you are editing DNS records, there is a confusion between acronyms. <br>A Record, CNAME, MX, TXT, etc What are all these? Please read on<br><br><strong>TOP level domain<\/strong> &gt; .com   .net  <br><strong>Second Level domain<\/strong> .co.nz   .com.au etc<br><br><strong>SOA record <\/strong> Start of Authority record -&gt; it just simply all details about the domain for example, nameservers, name of the admin, TTL etc. <br><br><strong>A Record i<\/strong>s used to translate the domain name to its IP address. <br>yourdomain.com points to&gt; 50.63.202.11 <\/p>\n\n\n\n<p><strong>NS Record<\/strong> Name Server Record ns1.yourhosting.com ns2.yourhosting.com<\/p>\n\n\n\n<p><strong>PTR record<\/strong> is a reverse of A record. It looks up for name against IP address.<\/p>\n\n\n\n<p><strong>CNAME <\/strong>stands for Canonical name<br>Suppose you have an existing domain (DomainA) resolving to an IP address. And the you purchased a second domain (DomainB). <br>You dont want DomainB to resolve to different IP address. You want to point it to the same IP address as domain A. <br>What you can do is map the second domain (DomainB) to the existing domain (DomainA) so that the resolve to the same IP address as DomainA. <br>The result is when a user enters any of these domains, it will direct them to the same website (or same IP address).<br><br>Throw in a Nerdy side of me, you can remember CNAME like this. <br>Who is Bruce Wayne &gt; Look up for Batman   &gt; and Batman stays at 1007 Mountain Drive, Gotham. <\/p>\n\n\n\n<p><strong>ALIAs <\/strong>is just like CNAME but the difference is you cant have CNAME for naked domain names, for example mydomain.com<br>It has to be either A record or an ALIAS. <br>ALIASes are normally used in AWS to point to AWS resources like EC2, S3, load balancers etc. <\/p>\n\n\n\n<p><br><strong>TTL <\/strong>Time to live, its basically Caching on either the resolving server or on your local system. <br>The lower the TTL, the faster it resolves. It could take 48 hours to propagate on all the servers throughout the internet. <br><\/p>\n\n\n\n<p><strong>MX records<\/strong> are mainly used for emails, if you are setting up an email like mymail@mydomain.com, then you are going to use this. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A lot of the time, when you are editing DNS records, there is a confusion between acronyms. A Record, CNAME, MX, TXT, etc What are all these? Please read on TOP level domain &gt; .com .net Second Level domain .co.nz .com.au etc SOA record Start of Authority record -&gt; it just simply all details about &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/teza.blog\/index.php\/2021\/09\/06\/dns-basics\/\" class=\"read-more\">Read More<span class=\"screen-reader-text\"> &#8220;DNS demystified&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-2485","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/comments?post=2485"}],"version-history":[{"count":7,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2485\/revisions"}],"predecessor-version":[{"id":2493,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/posts\/2485\/revisions\/2493"}],"wp:attachment":[{"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/media?parent=2485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/categories?post=2485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teza.blog\/index.php\/wp-json\/wp\/v2\/tags?post=2485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}