DNS查詢
查詢任意網域的DNS記錄
Windows
- Find it: run
ipconfig /alland read the DNS Servers line. - Change it: Settings → Network & Internet → your adapter → Edit DNS server assignment → Manual.
macOS
- Find or change it: System Settings → Network → your connection → Details → DNS, then add or remove server addresses.
Linux
- Find it: run
resolvectl status, or check/etc/resolv.conf. - Change it: edit your NetworkManager connection (
nmcli) or systemd-resolved configuration.
iPhone / iPad
- Settings → Wi-Fi → tap the (i) next to your network → Configure DNS → Manual to view or change servers.
Android
- Set a private resolver: Settings → Network & internet → Private DNS (enter a DNS-over-TLS hostname), or set a static DNS per Wi-Fi network.
Router (whole network)
- Log into your router admin panel (often
192.168.0.1or192.168.1.1) and set the DNS servers under WAN, Internet, or DHCP settings — this applies to every device on the network.
| Provider | IPv4 | IPv6 | 備註 |
|---|---|---|---|
| Cloudflare | 1.1.1.1, 1.0.0.1 | 2606:4700:4700::1111 | Privacy-focused, fast |
| Google Public DNS | 8.8.8.8, 8.8.4.4 | 2001:4860:4860::8888 | Widely used, reliable |
| Quad9 | 9.9.9.9 | 2620:fe::fe | Blocks known malicious domains |
| OpenDNS | 208.67.222.222, 208.67.220.220 | 2620:119:35::35 | Optional content filtering |
常見問題
什麼是DNS查詢?
A DNS lookup queries the Domain Name System to find the records associated with a domain name. These records map domain names to IP addresses (A/AAAA records), mail servers (MX records), text verification (TXT records), name servers (NS records), and more. DNS is essentially the phone book of the internet.
What are the different DNS record types?
The most common DNS record types are: A (maps domain to IPv4 address), AAAA (maps domain to IPv6 address), MX (specifies mail servers), TXT (holds text information like SPF, DKIM, and verification records), NS (specifies authoritative name servers), SOA (contains zone authority information), and CNAME (creates an alias pointing to another domain).
Why would I need to check DNS records?
Checking DNS records is useful for troubleshooting email delivery issues (MX records), verifying domain ownership (TXT records), debugging website connectivity problems (A/AAAA records), checking DNS propagation after changes, and auditing your domain security configuration (SPF, DKIM, DMARC in TXT records).
How long do DNS changes take to propagate?
DNS propagation typically takes anywhere from a few minutes to 48 hours, depending on the TTL (Time To Live) value set on the records. Lower TTL values mean faster propagation. Most changes propagate within 1-4 hours. You can check the TTL of existing records using this tool to estimate propagation time.
What is my DNS server and how do I find it?
Your DNS server (also called your DNS resolver) is the service that turns domain names into IP addresses. By default it is assigned by your ISP or router. To find it: on Windows run ipconfig /all and read the DNS Servers line; on macOS open System Settings then Network then Details then DNS; on Linux check /etc/resolv.conf or run resolvectl status. To confirm which resolver your browser actually uses on a VPN, run the DNS Leak Test.
What are the best public DNS servers?
Popular free public DNS resolvers include Cloudflare (1.1.1.1 and 1.0.0.1), Google Public DNS (8.8.8.8 and 8.8.4.4), and Quad9 (9.9.9.9). Cloudflare and Quad9 are privacy-focused, and Quad9 also blocks known malicious domains. You can change your DNS server in your router or operating system network settings.