From Domain to IP: Demystifying DNS Records in Minutes
š§ First: Big Picture DNS is basically a huge phonebook: š āHuman-readable nameā ā āIP addressā Example: educative.io ā 104.18.2.119 But instead of just one mapping, DNS stores different types of ...

Source: DEV Community
š§ First: Big Picture DNS is basically a huge phonebook: š āHuman-readable nameā ā āIP addressā Example: educative.io ā 104.18.2.119 But instead of just one mapping, DNS stores different types of records (RRs) for different purposes. š§© Key Terms (Super Important) 1. š Domain Name A domain name is the main name registered on the internet. š Example: educative.io Think of it as your brand / root identity Managed at domain level 2. š Hostname A hostname is a specific machine/service under a domain. š Examples: www.educative.io api.educative.io relay1.main.educative.io š Structure: [hostname].[domain] So: educative.io ā domain relay1.main.educative.io ā hostname (specific server/service) 3. šÆ IP Address The actual address of a machine on the internet š Example: 104.18.2.119 Computers talk using IPs, not names 4. š Canonical Name āCanonicalā = real/original name A canonical name is the true hostname of a server. š Used in CNAME records Example: educative.io ā server1.primary.educ