首先可以联网, 谷歌和微软邮箱等其他的一些网站都可访问, 但是访问油管的时候总是会超时,

首先想到了是 DNS 服务器的问题, 尝试把电脑的 DNS server 改为 8.8.8.8, 可惜需要管理员权限, 失败

后来无聊想着看看解析出来 youtube.com 的实际ip是什么, 使用 nklookup 查了一下, (大概这样, 没在实验室)

❯ nslookup youtube.com
Server:		192.168.2.1
Address:	192.168.100.1#53

Non-authoritative answer:
Name:	youtube.com
Address: 142.251.40.206

于是访问 142.251.40.206

❯ wget -O- 142.251.40.206
--2023-11-22 22:23:53--  http://142.251.40.206/
Connecting to 142.251.40.206:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.google.com/ [following]
--2023-11-22 22:23:53--  http://www.google.com/
Resolving www.google.com (www.google.com)... 142.250.80.36

可以看到被重定向到了谷歌页面, 当时在实验室也是这种情况, 查了一下, 这确实是正确的地址, 只是谷歌给重定向了, 所以不是DNS的问题, 那应该就是防火墙的问题, 下次去实验室再看看,

另外上面 nskookup 返回的是 Non-authoritative answer, 意思是 ip 地址不是由该域名的 NS 服务器返回的, 而是从 DNS cache获取的, 所以 Non-authoritative answer 并不是代表不安全或者不可靠, 但可能不是最新的, 比如你的域名刚更新了 NS server, 加了层 Cloudflare 的 https 加密代理, 即 your_domain->proxy-ip->your_ip, 而学校的 DNS cache 里缓存的却是你之前的 ip, 即 your_domain -> your_ip, 那代理就不会生效,


去实验室查了一下我域名的NS, 竟然 time-out:

c: \Users\student>nslookup shaowenzhu.top
Server: Unknown
Address:192.168.102.1

DNS request timed out.
timeout was 2 seconds.
...

查了一下, 看到了一个与我相似的问题:

DNS request timed out means NSLookup submitted the query to the DNS server, but did not get a response.

It’s possible the DNS server you queried was having a problem and couldn’t reply. Network errors could be to blame as well.

However, given that you did this from a “public computer,” the most likely explanation is that your DNS lookup was blocked by the network’s firewall. It’s common for network administrators to require that DNS lookups originating from nodes on the internal network be done using approved DNS servers. These can either be DNS servers under the administrator’s control, or specific public DNS servers selected by the admin.

突然想到 DNS 缓存在 Chrome 上也有备份, 于是去查了一下是不是可以修改 DNS server 在 Chrome 上, (在电脑上没有管理员权限),

真的有, 具体参考(privacy-security -> Advanced -> Use Secure DNS): How to Change DNS Server in Google Chrome on Computer and Mobile? - MiniTool

然后可以在Chrome上通过域名访问我的网站了, 终于不用输入 IP 了每次, nnd