Ubuntu 修改dns配置

直接修改/etc/resolve.conf(重启失效)

nameserver x.x.x.x
search xxx.com

修改 /etc/dhcp/dhclient.conf(重启生效)

prepend domain-name-servers x.x.x.x;
append domain-search "xxx.com";

你可能感兴趣的:(Ubuntu 修改dns配置)