[ Help ] /etc/resolv.conf and /etc/hosts

tagoor

Member
Dec 16, 2009
9
0
51
Hello,

Really i need help :(

Can please some one teach me how can i edit /etc/resolv.conf and /etc/hosts
Please step bye step cause i don't know how can i do it :( and i have this problem :(

Some are all of these problems can be caused by
/etc/resolv.conf being setup incorrectly. Please check this file if you
believe everything else is correct.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
14
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Hello,

Really i need help :(

Can please some one teach me how can i edit /etc/resolv.conf and /etc/hosts
Please step bye step cause i don't know how can i do it :( and i have this problem :(

Some are all of these problems can be caused by
/etc/resolv.conf being setup incorrectly. Please check this file if you
believe everything else is correct.
Via root SSH access, please use the following commands to display the contents of the files involved:
Code:
# cat /etc/hosts
# cat /etc/resolv.conf
To edit the files this could be performed using your preferred CLI text editor via root SSH access; for example, using vim/vi, nano/pico, or other text editors. I would consider reviewing the manual "man" page for the text editor chosen using an example like the following:
Code:
# man vim
# man nano
Searching the Internet, such as via Google, will also help to locate user guides on how to use common CLI text editors via SSH.