Explore all DNS record types and learn how to perform DNS lookups on any operating system. A complete reference for understanding how the Domain Name System works.
| Record Type | Full Name | Description | Example Value |
|---|
The Domain Name System (DNS) is the internet's phonebook. It translates human-readable domain names like routerhax.com into machine-readable IP addresses like 93.184.216.34. Without DNS, you would need to memorize IP addresses for every website you visit.
When you type a URL into your browser, your device sends a DNS query to a resolver, which checks its cache or queries authoritative name servers to find the correct IP address. This process typically takes just a few milliseconds.
Open Command Prompt and use the nslookup command:
nslookup routerhax.com
nslookup -type=MX routerhax.com
nslookup -type=TXT routerhax.com 8.8.8.8
Open Terminal and use the dig command:
dig routerhax.com
dig routerhax.com MX
dig routerhax.com TXT @8.8.8.8
dig +short routerhax.com A
host routerhax.com
host -t MX routerhax.com
| Provider | Primary DNS | Secondary DNS | Features |
|---|---|---|---|
| 8.8.8.8 | 8.8.4.4 | Fast, reliable, global | |
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Privacy-focused, fastest |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Content filtering available |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Security-focused, blocks malware |
| Comodo | 8.26.56.26 | 8.20.247.20 | Security and filtering |
| AdGuard | 94.140.14.14 | 94.140.15.15 | Ad and tracker blocking |
To change the DNS server on your router, follow our guide: How to Change DNS on Your Router.
DNS Security Extensions (DNSSEC) adds cryptographic signatures to DNS records to prevent spoofing and cache poisoning attacks. DNSSEC uses DNSKEY and DS records to create a chain of trust from the root zone down to individual domains.
While DNSSEC does not encrypt DNS queries (that's what DNS-over-HTTPS and DNS-over-TLS do), it ensures the authenticity of DNS responses, preventing attackers from redirecting you to malicious websites.
ipconfig /flushdns (Windows) or sudo dscacheutil -flushcache (macOS).An A record maps a domain name to an IPv4 address. It is the most fundamental DNS record type. When you visit a website, your browser ultimately needs an A record to find the server's IP address. For example, routerhax.com might have an A record pointing to 93.184.216.34.
An A record maps a domain directly to an IP address, while a CNAME record creates an alias pointing one domain to another domain. CNAME records are useful for subdomains like www.example.com pointing to example.com. You cannot use a CNAME at the root domain (zone apex).
DNS propagation typically takes 15 minutes to 48 hours, depending on the TTL (Time to Live) value set on the records. Lower TTL values mean faster propagation but more DNS queries. Before making important DNS changes, reduce the TTL in advance.
Both are excellent choices. Cloudflare (1.1.1.1) is generally the fastest and focuses on privacy, promising not to sell user data. Google DNS (8.8.8.8) has a longer track record and wider global infrastructure. Either is a significant improvement over most ISP DNS servers.
About Tommy N.
Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.
Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.
Once done, hit any button as below
![]() |
![]() |
![]() |
![]() |