HackMyIP

DNS查询

查询任意域名的DNS记录

DNS 查询会显示某个域名的 DNS 记录(A、AAAA、MX、TXT、NS、SOA、CNAME)。在下方输入任意域名即可查询。想知道你自己正在使用哪个 DNS 服务器,请查看下方的分设备指南,或运行 DNS 泄露测试
以JSON获取此结果 → GET /api/v1/dns/example.com  ·  API文档
如何查看和更改你的 DNS 服务器

Windows

  1. Find it: run ipconfig /all and read the DNS Servers line.
  2. Change it: Settings → Network & Internet → your adapter → Edit DNS server assignment → Manual.

macOS

  1. Find or change it: System Settings → Network → your connection → Details → DNS, then add or remove server addresses.

Linux

  1. Find it: run resolvectl status, or check /etc/resolv.conf.
  2. Change it: edit your NetworkManager connection (nmcli) or systemd-resolved configuration.

iPhone / iPad

  1. Settings → Wi-Fi → tap the (i) next to your network → Configure DNS → Manual to view or change servers.

Android

  1. 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)

  1. Log into your router admin panel (often 192.168.0.1 or 192.168.1.1) and set the DNS servers under WAN, Internet, or DHCP settings — this applies to every device on the network.
常用公共 DNS 服务器
ProviderIPv4IPv6备注
Cloudflare1.1.1.1, 1.0.0.12606:4700:4700::1111Privacy-focused, fast
Google Public DNS8.8.8.8, 8.8.4.42001:4860:4860::8888Widely used, reliable
Quad99.9.9.92620:fe::feBlocks known malicious domains
OpenDNS208.67.222.222, 208.67.220.2202620:119:35::35Optional 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.