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.

ndc: connect failed: connection refused

Discussion in 'General Discussion' started by xWho, Oct 8, 2003.

  1. xWho

    xWho Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
    Should I be seeing this:

    ndc: connect failed: connection refused

    In the output of WWWAcct 7.0, when I create a new account?

    +===================================+
    | New Account Info |
    +===================================+
    | Domain: etc.bz
    | Ip: 69.57.132.80 (n)
    | HasCgi: y
    | UserName: etc
    | PassWord: XXXXXXXXXXXX
    | CpanelMod: x
    | HomeRoot: /home
    | Quota: unlimited Meg
    | NameServer1: ns1.rackshack.net
    | NameServer2: ns2.rackshack.net
    | NameServer3:
    | NameServer4:
    +===================================+
    User etc added
    Keeping Shell Access (y)
    Copying skel files from /root/cpanel3-skel/ to /home/etc/
    Using redhat 7.1/mdk 8.0
    Using new quota support
    (uid 320 0 0 ):
    Filesystem blocks soft hard inodes soft hard
    /dev/hda3 8 0 0 3 0 0
    Name Virtual Host already exists
    Added Entries to httpd.conf (noip)
    Added DomainAlias Entry
    Added Named Entry
    Added Named File
    Restarting NameServer
    Restarting apache
    Ftp Password Files synced
    Vhost Passwords synced
    ndc: connect failed: connection refused
    skip CONTACTAIM (2) [3]
    send to CONTACTEMAIL (3) [3]
    skip CONTACTPAGER (1) [3]
    skip CONTACTUIN (2) [3]
    wwwacct creation finished
    Account Creation Complete!!!


    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  2. Darren

    Darren Well-Known Member
    Staff Member

    Joined:
    Dec 26, 2001
    Messages:
    1,957
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Houston, TX
    you might try /scripts/fixndc .
    does `ndc status` work from the shell ? Make sure the rndc-key's match (both in content and name) in /etc/rndc.conf and /etc/named.conf

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  3. xWho

    xWho Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
    Ok that seems to have helped...

    Would that have been causing "www." not to work at times and other weird DNS and nameserver problems??

    cPanel.net Support Ticket Number:
     
  4. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    yes. Ndc is responsible for Bind (which is DNS), which also controls the name server and could wreak some havoc on name resolution.

    cPanel.net Support Ticket Number:
     
  5. jtcotton

    jtcotton Registered

    Joined:
    Oct 23, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    ndc problem

    I tried reinstalling the rpms, runing the fixndc scripts and none of that worked. Zones were still being added but I was getting those anoying ndc errors. This fixed it.

    All I had to do is this:

    In /etc/named.conf I didnt have the following lines. Once I added them, it worked great.

    controls {
    inet 127.0.0.1 port 953
    allow { 127.0.0.1; } keys { "rndc-key"; };
    };

    For some reason this wasnt added automatically but when I added it, all of the ndc problems went away.
     
Loading...

Share This Page