Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    Default Setting up /etc/resolv.conf

    Hey guys,

    just reinstalled my server after a bad cPanel installation

    Anyway, this time I want to get everything right, so I also installed Fedora Core instead of Suse (worked better on my last server... )

    First, I edited the /etc/resolv.conf, there I found this entry

    Code:
    nameserver xx.xxx.xx.xx
    So I changed it to this (the IP's are two nameservers provided by my host...

    Code:
    domain mydomain.com
    nameserver first.ip.xx
    nameserver second.ip.xx
    So far so bad, then I ran
    Code:
    hostname sv1.mydomain.com
    to set up my hostname...

    After this, came this:

    Code:
    [root@1764-32 home]# wget http://layer1.cpanel.net/latest
    --16:40:18--  http://layer1.cpanel.net/latest
               => `latest'
    Auflösen des Rechnernamens »layer1.cpanel.net«.... 62.112.155.137
    Verbindungsaufbau mit layer1.cpanel.net[62.112.155.137]:80... fehlgeschlagen: Verbindungsaufbau abgelehnt.
    wich means translated that the connection was refused to the cPanel servers... hence, resolv.conf must be bad.. so I restored the resolv.conf, now the download actually works....

    But, should I leave resolv.conf as it is? Whats the business with the nameservers from my host, do I actually need them, do they work? Or did I set it up wrong?

    Thanks in advance, hope I could provide enough info.
    Last edited by winduff; 03-09-2008 at 01:37 PM.

  2. #2
    Member davidanand's Avatar
    Join Date
    Jan 2008
    Location
    India
    Posts
    22

    Default

    Hi,

    May I know why you are putting your host name entry in the resov.conf. please try using the
    name servers that are given by your host..that is
    nameserver first.ip.xx
    nameserver second.ip.xx

    please post the result.
    REGARDS
    David

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    Default

    yep, no problem - works fine

    Thanks!

Similar Threads & Tags
Similar threads

  1. /etc/resolv.conf
    By coffee23 in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 10-26-2007, 07:28 PM
  2. resolv.conf
    By jollymon in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-01-2006, 04:50 PM
  3. First time setting dns, resolv.conf not showing right
    By smash123 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-25-2004, 11:58 PM
  4. /etc/resolv.conf what should be there
    By dunno in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-18-2003, 03:01 PM
  5. resolv.conf
    By elleryjh in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-12-2003, 11:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube