After the Linux system is reinstalled, the domain name cannot be resolved due to various reasons, so you need to modify the DNS. This article introduces from the temporary modification and permanent modification. Interested friends may wish to learn it.
There are two ways to modify DNS in Linux, temporary modification and permanent modification.
1. Temporarily modify the NIC DNS address
The code is as follows:
sudo vim /etc/resolv.conf
Change to the following content:
The code is as follows:
nameserver 8.8.8.8 #modified into your primary DNS
nameserver 8.8.4.4 #modified into your alternate DNS
search localhost #你The domain name
I used Google's DNS resolution server here. After the modification: wq exits, the configuration will take effect in real time, but the configuration may be lost after restarting the system. In fact, when editing this file, you should also be able to see the file header "Do not manually edit the comments".
2, permanent changes card DNS
code is as follows:
sudo & ndash; i
cd /etc/resolvconf/resolv.conf. d
vim base
Add the following content
The code is as follows:
nameserver 8.8.8.8
nameserver 8.8.4.4
:wq Save and exit, so the settings will not be lost after reboot.
In fact, your cat head file will find the comment in the header of the picture. It is not difficult to speculate that the resolv.conf file is based on the /etc/resolvcon f/re sol v.conf.d directory. Generated files.
The above is the way to modify the DNS under Linux. If you forgot to enter the DNS Server when you reinstall the system in Linux, try the method described in this article to modify the DNS address of the network card.
In Linux, a signal is also called a soft interrupt. The process processes the signa
in Ubuntu In Ubuntu system operation, because of the need to develop Gis application, to install Ma
Part of the Linux users who installed Red Flag Linux6.0 and Windows dual system, encountered some pr
In the Windows system, if the application does not respond, we will start the task
Linux cancels the SSH login password
How Linux implements the transmission of UDP broadcast messages
Linux using the mpstat command method
CentOS 6.5 install wireless network card driver tutorial
Ubuntu system terminal removal program method
Linux how to use the setfacl command to create a permission file
Ubuntu system to enable Soft AP method
How to identify the useradd and adduser commands in Ubuntu
Summary of usage of the hexdump command in Linux systems
How to configure Kickstart script
The language bar is gone, how to find it back
Office2013 serial number modification method under Win8.1
Windows 7 game compatibility test performance is very good
Win10 preview version of the official download how to download and use?
Win8 computer sound is not normal how to do Win8 set audio manager method
Win10 Mobile build 14393.189 installation and start experience video
What should I do if I get an error when installing LDAP on Linux under Linux?
Win7 system open QQ prompt configuration is incorrect reason and solution