How it works
When you type an address, your computer asks a DNS server. If needed, that server asks the root servers, then the servers for the .com domain and finally the server that knows the specific domain. The answer is stored for a while so that the next lookup is fast.
Records
- A and AAAA: the IP address (IPv4 and IPv6).
- CNAME: an alias for another domain.
- MX: where to deliver emails.
- TXT: verifications and settings, for example SPF for email.
DNS at home
Your router uses the DNS of your internet provider. You can change it to a faster or more private one. With Pi-hole on a Raspberry Pi you can block ads and tracking at the DNS level for the whole household.