Charles证书下载报Name lookup failed

背景

1.charles https抓包需要在手机上安装证书。
2.近期疫情影响,通过openVPN远程办公。

问题现象

按照网上教程配置好charles proxy配置,证书安装的时候,iPhone访问:chls.pro/ssl,出现如下错误:
Charles Error Report
Name lookup failed for remote host Charles failed to resolve the name of the remote host into an IP address. Check that the URL is correct.
The actual exception reported was: java.net.UnknownHostException: http: unknown error Charles Proxy, http://www.charlesproxy.com/

解决方法

需要在电脑上加上DNS:114.114.114.114
然后访问,下载证书并安装。

反思

Charles https抓包其实用过很多次,第一次出现这个错误。原来是远程办公连接VPN后,会自动设置电脑的DNS,导致DNS解析出现异常。修改DNS后,需要注意VPN是否正常。

重点:记得备份VPN的DNS地址,否则后面就找不回了。

猜你喜欢

转载自www.cnblogs.com/amyzhu/p/12330077.html