开了个 GCP 机器,用来代理,用了一些用 DNS 破解流媒体地域限制的歪门邪道,那个方法需要固定 DNS 到一个固定的地址,但我每次改了后,Google 过段时间就会自动该回去。把 DNS 文件设置为只读也阻止不了,求救。
如图为 Google 自动改成了内网 DNS
1
leavic 2019 年 9 月 28 日
请自己 google resolvconf
|
2
yexm0 2019 年 9 月 28 日 via Android
看后台是不是跑着 google 的程序?是就试试 kill 了
|
3
Yien 2019 年 9 月 28 日
求歪门邪道秘笈
|
4
love4taylor PRO iptables 重定向喽
|
5
dot2017 2019 年 9 月 28 日
1. 将 resolve.conf 设置成只读
2. 找网卡的配置文件,里面应该有一项 autoconfig,屏蔽掉 |
6
dot2017 2019 年 9 月 28 日
另外 aws 和 azure 也是一样的,目的就是让虚拟机默认走内网的 dns。
|
7
ETiV 2019 年 9 月 29 日
极大概率是 DHCP client 搞的,不会记错的……
我在 AWS 上被坑过,改了当时是生效了,结果过了个不定期的时间,又给还原回去了,业务就 down 了 看了系统日志发现是 DHCP 给弄的… |
8
mikeguan 2019 年 9 月 29 日 via Android
你的这个只读对 root 用户无效,需要 chattr 加上 i 权限
|
9
trepwq 2019 年 9 月 29 日
root@instance-1:~# cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit. # # This is a dynamic resolv.conf file for connecting local clients to the # internal DNS stub resolver of systemd-resolved. This file lists all # configured search domains. # # Run "systemd-resolve --status" to see details about the uplink DNS servers # currently in use. # # Third party programs must not access this file directly, but only through the # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way, # replace this symlink by a static file or a different symlink. # # See man:systemd-resolved.service(8) for details about the supported modes of # operation for /etc/resolv.conf. |
10
Astralis 2019 年 9 月 29 日
代理软件的配置文件内可以指定 dns 的吧,不一定非要修改系统 dns
|
11
zeyexe 2019 年 9 月 29 日
|
12
notgood 2019 年 9 月 29 日 via iPhone
LZ 求歪门邪道秘笈. 謝謝🙏
|
13
notgood 2019 年 9 月 29 日 via iPhone
你要 chattr 加上 i 权限 chattr +i /etc/resolv.conf
求歪门邪道秘笈. 謝謝🙏 |
14
goldalan 2020 年 10 月 22 日
修改 /etc/sysconfig/network/config 文件,将 NETCONFIG_DNS_POLICY='auto'这句改为 NETCONFIG_DNS_POLICY=''
|