📅  最后修改于: 2023-12-03 15:04:53.670000             🧑  作者: Mango
Resolvconf Set DNS is a Shell-Bash command used for configuring the Domain Name System (DNS) servers on a Linux system. The command is used to set the DNS servers that should be used by the system for resolving domain names to IP addresses.
The resolvconf utility is used to manage the configuration of the DNS system on Debian-based Linux distributions. When used with the set command, it allows you to set the DNS servers for the system by editing the configuration files used by the DNS system.
Here is an example of how to use the resolvconf set dns command:
sudo resolvconf set dns <dns-server>
Where <dns-server>
is the IP address of the DNS server that you want to set.
The command can be used to set multiple DNS servers by separating the IP addresses with spaces:
sudo resolvconf set dns <dns-server1> <dns-server2> <dns-server3>
It is important to note that the resolvconf set dns command is only used to set the DNS servers temporarily. The changes made will be lost when the system is rebooted. To make the changes permanent, you need to add the DNS servers to the /etc/resolvconf/resolv.conf.d/base
file.
In conclusion, the Resolvconf Set DNS command is a useful tool for Linux administrators who need to configure the DNS system on their servers. It is easy to use and provides a quick way to set the DNS servers for the system.