希望深度能设置DNS
Tofloor
poster avatar
billstark
deepin
2017-04-20 22:33
Author
希望深度能做一个全局DNS设置,否则每次手动修改resolve.conf太麻烦了
Reply Favorite View the author
All Replies
avatar
billstark
deepin
2017-04-20 22:45
#1
默默顶下帖
Reply View the author
avatar
billstark
deepin
2017-04-20 22:53
#2
顶起来
Reply View the author
avatar
FZFZ
deepin
2017-04-20 23:03
#3
如果你说的是dns服务器地址的话,我建议你再仔细的看看网络设置页面。
Reply View the author
avatar
billstark
deepin
2017-04-20 23:23
#4
https://bbs.deepin.org/post/138015
如果你说的是dns服务器地址的话,我建议你再仔细的看看网络设置页面。

那个操作并不能全局修改,只能单独修改一个网络
Reply View the author
avatar
hewro
deepin
2017-04-20 23:42
#5
https://bbs.deepin.org/post/138015
那个操作并不能全局修改,只能单独修改一个网络

Windows似乎也只能当改一个网络的DNS
Reply View the author
avatar
billstark
deepin
2017-04-21 00:02
#6
https://bbs.deepin.org/post/138015
Windows似乎也只能当改一个网络的DNS

windows可以全局修改,linux也行,但是deepin的resolveconf路径下面没有head和文件,所以修改不能永久生效
Reply View the author
avatar
justforlxz
deepin
2017-04-21 01:06
#7
来来来。

sudo chattr +i /etc/resolv.conf

别问我怎么解除,我只帮你到这里。
Reply View the author
avatar
billstark
deepin
2017-04-22 01:29
#8
https://bbs.deepin.org/post/138015
来来来。

sudo chattr +i /etc/resolv.conf

chattr: Operation not supported while reading flags on /etc/resolv.conf

而且...这个思路不太常规啊...
Reply View the author
Comments
kirigaya
2017-04-23 22:26
锁定文件嘛,这样就无法修改了。
snyh1010
2017-04-22 01:57
这个方式挺好的。。 
avatar
snyh1010
deepin
2017-04-22 01:58
#9
本帖最后由 snyh1010 于 2017-4-21 18:12 编辑

/etc/NetworkManager/NetworkManager.conf 里面加上dns=none的话(main section),nm就不会动/etc/resolv.conf

需要sudo systemctl restart NetworkManager.service才会生效
Reply View the author
avatar
billstark
deepin
2017-05-18 20:17
#10
https://bbs.deepin.org/post/138015
/etc/NetworkManager/NetworkManager.conf 里面加上dns=none的话(main section),nm就不会动/etc/resolv.co ...

但这样的话,也无法设置DNS了丫
Reply View the author
avatar
134******40
deepin
2017-05-18 20:46
#11
billstark 发表于 2017-4-20 16:02
windows可以全局修改,linux也行,但是deepin的resolveconf路径下面没有head和文件,所以修改不能永久生效 ...

Windows我还真不知道全局修改呢。能不能说一下,我的工作环境需要多网卡
Reply View the author
avatar
billstark
deepin
2017-05-19 03:33
#12
https://bbs.deepin.org/post/138015
Windows我还真不知道全局修改呢。能不能说一下,我的工作环境需要多网卡

dns-set.zip

修改一下这个bat,直接运行
Reply View the author
avatar
Rubbish
deepin
2023-04-11 00:30
#13

顶一下老帖

手改每个wifi的dns太脑瘫了rage

Reply View the author