Confirm the network card name first, useifconfig
to view
Free video tutorial sharing:linux Video tutorial
Configuring dns can be written directly into the network card configuration file, such as editingvi /etc/sysconfig/network-scripts/ifcfg-eth0
After setting, you need to restart the network card service for it to take effect
Recommended related articles and tutorials:linux tutorial
The above is the detailed content of How to set up dns server in linux. For more information, please follow other related articles on the PHP Chinese website!