nslook*自定义 DNS 服务器

2018-01-10 02:34:40 +08:00
 OneNian

除了修改 resolv.conf 还有什么办法能自定义 DNS 服务器

1491 次点击
所在节点    Go 编程语言
7 条回复
jimzhong
2018-01-10 03:12:20 +08:00
$ nslookup www.google.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: www.google.com
Address: 172.217.15.68
Name: www.google.com
Address: 2607:f8b0:4004:805::2004
xiaket
2018-01-10 07:19:21 +08:00
dnschef
wweir
2018-01-10 07:49:05 +08:00
让 socks 转发 dns 请求
lmaq
2018-01-10 09:24:10 +08:00
server 114.114.114.114
tailf
2018-01-10 10:53:00 +08:00
nslookup 第二个参数就是自定义服务器地址。。。。
whx20202
2018-01-10 11:40:25 +08:00
5 楼说的对,其实也可以用 dig
dig www.baidu.com @127.0.0.1 -p 53
wuhau
2018-01-11 00:44:47 +08:00
$ nslookup
> google.cn
Server: 8.8.8.8
Address: 8.8.8.8#53

Non-authoritative answer:
Name: google.cn
Address: 203.208.43.111
Name: google.cn
Address: 203.208.43.127
Name: google.cn
Address: 203.208.43.119
Name: google.cn
Address: 203.208.43.120
> server 114.114.114.114
Default server: 114.114.114.114
Address: 114.114.114.114#53
> google.cn
Server: 114.114.114.114
Address: 114.114.114.114#53

Non-authoritative answer:
Name: google.cn
Address: 203.208.48.88
Name: google.cn
Address: 203.208.48.79
Name: google.cn
Address: 203.208.48.87
Name: google.cn
Address: 203.208.48.95

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/421546

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX