Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by tagoor, Feb 17, 2010.

  1. tagoor

    tagoor Member

    Joined:
    Dec 16, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice