Answers:
您可以将此行添加到您的/etc/dhcp/dhclient.conf
:
supersede domain-name-servers 8.8.8.8, 8.8.4.4;
然后重新启动网络或运行dhclient
进行更改。
来自man dhclient.conf
:
The supersede statement
supersede [ option declaration ];
If for some option the client should always use a locally-configured
value or values rather than whatever is supplied by the server, these
values can be defined in the supersede statement.
/etc/dhcp/dhclient.conf
的request
参数,你不想请求,DNS也可以domain-name, domain-name-servers, domain-search
。