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