时间:2023-02-13 04:57:01 | 来源:建站知识
时间:2023-02-13 04:57:01 来源:建站知识
默认情况下,我们使用的Local DNS Resolver是ISPs的Local DNS Resolver。ISP记录着分配给每个用户的IP地址,甚至他们的DNS服务记录了哪些用户访问过哪些IP地址,以及哪些用户访问过那些域名。因此ISP从技术上是可以记录你访问过的网站。当然,你可以把你访问的Local DNS resolver替换成一些公共的DNS resolver,如 Google, Cloudflare, OpenDNS。
## macOS Notice## This file is not consulted for DNS hostname resolution, address# resolution, or the DNS query routing mechanism used by most# processes on this system.## To view the DNS configuration used by this system, use:# scutil --dns## SEE ALSO# dns-sd(1), scutil(8)## This file is automatically generated.#nameserver fe80::1%en0nameserver 192.168.1.1
链接手机的热点时:## macOS Notice## This file is not consulted for DNS hostname resolution, address# resolution, or the DNS query routing mechanism used by most# processes on this system.## To view the DNS configuration used by this system, use:# scutil --dns## SEE ALSO# dns-sd(1), scutil(8)## This file is automatically generated.#nameserver fe80::f810:93ff:fe9b:164%en0nameserver 172.20.10.1
使用代理时:## macOS Notice## This file is not consulted for DNS hostname resolution, address# resolution, or the DNS query routing mechanism used by most# processes on this system.## To view the DNS configuration used by this system, use:# scutil --dns## SEE ALSO# dns-sd(1), scutil(8)## This file is automatically generated.#nameserver 10.12.2.3nameserver 10.12.2.4
Type | Description | Name | Value | Example (Type, Name, Value) |
---|---|---|---|---|
A | Provides the hostname to IP address mapping | Hostname | IP address | (A, relay1.main.educative.io,104.18.2.119) |
NS | Provides the hostname that is the authoritative DNS for a domain name | Domain name | Hostname | (NS, educative.io, http://dns.educative.io) |
CNAME | Provides the mapping from alias to canonical hostname | Hostname | Canonical name | (CNAME, educative.io, http://server1.primary.educative.io) |
MX | Provides the mapping of mail server from alias to canonical hostname | Hostname | Canonical name | (MX, mail.educative.io, http://mailserver1.backup.educative.io) |
chrome://net-internals/#dns
查看缓存情况。如果DNS 服务挂掉,缓存还能起作用。$ nslookup www.google.comServer:10.12.2.3Address:10.12.2.3#53Non-authoritative answer:Name:www.google.comAddress: 142.251.12.103Name:www.google.comAddress: 142.251.12.104Name:www.google.comAddress: 142.251.12.105Name:www.google.comAddress: 142.251.12.147Name:www.google.comAddress: 142.251.12.99Name:www.google.comAddress: 142.251.12.106
Non-authoritative answer表示缓存响应。$ dig www.google.com; <<>> DiG 9.10.6 <<>> www.google.com;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18750;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 4000;; QUESTION SECTION:;www.google.com.INA;; ANSWER SECTION:www.google.com.195INA142.251.12.103www.google.com.195INA142.251.12.106www.google.com.195INA142.251.12.104www.google.com.195INA142.251.12.147www.google.com.195INA142.251.12.105www.google.com.195INA142.251.12.99;; Query time: 43 msec;; SERVER: 10.12.2.3#53(10.12.2.3);; WHEN: Mon Aug 15 00:57:16 CST 2022;; MSG SIZE rcvd: 139
195表示TTL,单位为秒。如果想追踪 www.google.com
域名对应 IP 地址是如何被解析出来的,可以使用命令dig +trace www.google.com
host github.comhost facebook.github.comhost 172.253.118.100 # 逆向
关键词:服务