Save and quit the file using ESC and :wq. Next, we’ll set our DNS IP’s to use Google’s Public DNS ( 8.8.8.8 & 8.8.4.4). Vim /etc/sysconfig/network-scripts/ifcfg-eth0 Step 2: The method for permanent changes is to edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file instead of nf file. So, we’ll first stop and disable the Network Manager:īe sure to run these commands as the root user, or a privileged user using sudo before each command.Ĭhkconfig NetworkManager off service NetworkManager stop The Network Manager controls this essential /etc/nf file to create permanent changes. Manually editing the nf file to configure name resolution will only do so temporarily. Step 1: Amongst many other configuration tasks, the nf file is used to resolve DNS requests. In this troubleshooting tutorial, we’ll show you some common solutions to connectivity issues. If the connection from your local machine, in this case, a CentOS server, is disconnected you’ll likely run into issues trying to access the world wide web. These commands connect to the Internet using gateways to communicate and provide information. For the sake of brevity, we look towards commonalities between these commands to solve the issue. There are many reasons why these commands can cause an error, including file corruption. You may find the “can’t resolve hostname” or “temporary failure in name resolution” error when using retrieval command like wget, cURL, ping or nslookup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |