Ubuntu—永久配置DNS

配置Ubuntu系统dns永久生效的配置文件为:/etc/network/interfaces。比如给网卡vswitch0配置DNS地址的话就在下面增加一行,内容为:

  dns-nameservers 114.114.114.114

配置完成以后,整个网卡的配置文件为:

  auto vswitch0

iface vswitch0 inet static

address 10.18.9.23

netmask 255.255.255.0

gateway 10.18.9.254

network 10.18.9.0

broadcast 10.18.9.255

dns-nameservers 114.114.114.114

 

未经允许不得转载:主机推荐 » Ubuntu—永久配置DNS

赞 (0)
分享到:更多 ()

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址