Get client's DNS server.
部署
需要的东西:
- 一个域名,例子中使用
dnspy.nat.moe
。 - 一台服务器。
- 将
dnspy.nat.moe
的 A 记录指向服务器。 - 将
test.dnspy.nat.moe
的 NS 记录指向服务器。 - 修改
config.json
内的testhost
值为 (2) 中的域名 (test.dnspy.nat.moe
)。 $ node index.js
- 访问服务器的 8080 端口。
Get client's DNS server.
需要的东西:
dnspy.nat.moe
。dnspy.nat.moe
的 A 记录指向服务器。test.dnspy.nat.moe
的 NS 记录指向服务器。config.json
内的 testhost
值为 (2) 中的域名 (test.dnspy.nat.moe
)。$ node index.js