Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Page Tree
root安全节点+超级节点搭建教程


Panel
borderColorgrey
bgColorwhite
titleColorblack
borderWidth1
titleBGColorwhite
borderStylesolid
titleLanguages


重新配置/etc/resolv.conf以使用新名称服务器

我为什么要在乎?

  • 将通过使用公共NAT64 / DNS64解析器在IPv6受限节点上充分使用GitHub



描述指令
1

更新/etc/resolv.conf以使用公共NAT64 / DNS64解析程序

警告 - 这将覆盖任何现有的DNS条目,请确定您要执行此操作!

Code Block
echo \
"#TREX Public DNS64 Resolvers
nameserver 2001:67c:2b0::4
nameserver 2001:67c:2b0::6" | sudo tee /etc/resolv.conf


2

备选 - 将1.1.1.1 DNS名称服务器附加到/etc/resolv.conf中


注意:如果在此步骤之后无法从GitHub存储库进行更新,请重复步骤1,不要执行步骤2


Code Block
echo \
"#Public DNS Servers
nameserver 2606:4700:4700::1111
nameserver 2606:4700:4700::1001
nameserver 1.1.1.1
nameserver 1.0.0.1" | sudo tee -a /etc/resolv.conf


3使用chattr防止任何VPS云配置重置/etc/resolv.conf

这将使/etc/resolv.conf不可变

Code Block
sudo chattr +i /etc/resolv.conf

如果需要再次编辑/etc/resolv.conf,则必须禁用不变性

Code Block
sudo chattr -i /etc/resolv.conf


4检查节点的DNS连接设置


Code Block
systemd-resolve --status



Insert excerpt
友情链接
友情链接
nopaneltrue