Forgot password?
 Register account
View 374|Reply 6

Protective Domain Name Service (PDNS)

[Copy link]

3158

Threads

7933

Posts

45

Reputation

Show all posts

original poster hbghlyj posted 2023-7-24 01:21 |Read mode
Last edited by hbghlyj 2023-7-24 01:42修改hosts只是在一些网站不使用PDNS,用下面的方法彻底不使用PDNS:
在Window设置页面Network internet > Advanced network settings > Network adapters > View additional properties看到:DNS被更改为129.67.1.1和163.1.2.1 Screenshot 2023-07-24 011921.png
原来是openconnect修改网络适配器的DNS设置
连接过程中命令行有信息
  1. Configured 2 DNS servers:129.67.1.1 163.1.2.1
Copy the Code
help center列出的DNS resolvers相同
Screenshot 2023-07-24 011738.png

C:\Program Files\OpenConnect\vpnc-script-win.js定位到产生信息是第189行:把第177行
  1. var dns = env("INTERNAL_IP4_DNS").split(/ /);
Copy the Code
改为通常的DNS服务的IP例如Clouldflare 1.1.1.1、谷歌8.8.8.8/8.8.4.4、Public DNS Servers in China
  1. var dns = ['1.1.1.1','8.8.8.8','8.8.4.4']
Copy the Code
再运行openconnect就能看到配置了这些DNS Servers: Screenshot 2023-07-24 013411.png

注:如果在校,DHCP 也有可能解析到 PDNS,最好是手动设置DNS Server.

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | 快速注册

$\LaTeX$ formula tutorial

Mobile version

2025-6-8 06:59 GMT+8

Powered by Discuz!

Processed in 0.015705 second(s), 25 queries

× Quick Reply To Top Edit