The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[ 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:
    1
    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,557
    Likes Received:
    7
    Trophy Points:
    38
    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.
     
Loading...

Share This Page