時間:2023-02-13 04:57:01 | 來源:建站知識
時間:2023-02-13 04:57:01 來源:建站知識
默認情況下,我們使用的Local DNS Resolver是ISPs的Local DNS Resolver。ISP記錄著分配給每個用戶的IP地址,甚至他們的DNS服務(wù)記錄了哪些用戶訪問過哪些IP地址,以及哪些用戶訪問過那些域名。因此ISP從技術(shù)上是可以記錄你訪問過的網(wǎng)站。當然,你可以把你訪問的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 服務(wù)掛掉,緩存還能起作用。$ nslookup www.google.comServer:10.12.2.3Address:10.12.2.3#53?Non-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表示緩存響應(yīng)。$ 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
域名對應(yīng) IP 地址是如何被解析出來的,可以使用命令dig +trace www.google.com
host github.comhost facebook.github.comhost 172.253.118.100 # 逆向
關(guān)鍵詞:服務(wù)
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。