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.

Named Problem

Discussion in 'General Discussion' started by Immunity, Jan 10, 2007.

  1. Immunity

    Immunity Member

    Joined:
    Aug 30, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi friends,

    I am newbie here. But i have a problem like all newbies.

    I installed cPanel a month ago but then named server is crashed. when i write "service named restart" system says "root@elnino [~]# service named restart
    Usage: named {start|stop}"

    I will write here all problems.

    root@elnino [~]# service named start
    root@elnino [~]# service named restart
    Usage: named {start|stop}
    root@elnino [~]# service named start
    root@elnino [~]# service named sop
    Usage: named {start|stop}
    root@elnino [~]# service named stop
    cat: /var/run/named.pid: No such file or directory
    kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -[sigspec]

    How can i fix that? All sites run now but i can not add new account with WHM. when i add a new account, i can open the site. It resolves and sees the nameservers but sites do not open.

    For ex : http://www.caniy.com

    I opened a new hosting by WHM i setuped all ns options. But i can open it. I tried other new ones. Problem is going on.

    How can i fix that?

    Thanks for your helping,

    Best Regards;

    Cihan KIZILGÜL
    http://www.servetr.com

    NOTE : server's ip : 217.20.113.142

    name servers : ns1.servetr.com / ns2.servetr.com
     
  2. Immunity

    Immunity Member

    Joined:
    Aug 30, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I need an answer. Please help me about that topic.
     
  3. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    If the domain is resolving properly in DNS, you may wish to check on your Apache if the domains entries are properly setup there. Also, when you try to setup an account in WHM, are you being prompted for any error?
     
  4. Immunity

    Immunity Member

    Joined:
    Aug 30, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi again,

    I do not get any error about Apache. I can not start named too. I opened an account yesterday. It didn't resolve. But i looked at it today, it resolves true. Normally, resolving takes maximum 5 minutes. I waited it about 24 hours.


    I will show you all commands.

    root@elnino [~]# /scripts/updateuserdomains / done, no problem.

    root@elnino [~]# service named restart
    Usage: named {start|stop} / it is cause, i think. it have to be restart when i write this command.


    root@elnino [~]# named -u named / done, no problem.

    root@elnino [~]# service named start
    root@elnino [~]# service named stop
    /etc/init.d/named: line 18: kill: (19571) - No such process
    root@elnino [~]# service named start
    root@elnino [~]# service named restart
    Usage: named {start|stop}



    I opened an account by using WHM. Its name is caniy.com . It see our server's ip but i can not get ping replies. When i send ping other sites, i can get reply.

    you can look at servetr.com / caniy.com / They are in same server. I live continuously named problem. How can i fix that?

    When i write "service named restart", i can not get command's reply like OK or failed.
     
  5. dafut

    dafut Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    If named isn't starting, it could be due to a number of issues. What I would do is, in SSH, run the following commands:

    # tail -f /var/log/messages <enter>​

    This will "follow the tail end" of the messages log. Use "Ctrl-z" to put the tail into the background.

    Then run:

    # service named start <enter>​

    Bring the tailed log back into the foreground with:

    # fg <enter>​

    Look carefully at the messages log. Look at all of the messages. You should see that it loads a configuration ('etc/named.conf'), listens on the interfaces, with their IP addresses and port, and it then loads all of the zones. Make sure all zones are loaded. Look for any error message: this will be your best clue!

    A shortcut to this would be to grep (search) the messages log for "named" entries. A simple grep would be:

    # grep named /var/log/messages <enter>​

    Expect to get a lot of responses. Look for errors. It could be something as simple as a CNAME record duplicating an MX record, for example. Or, it could be an illegal or improper instruction in named.conf.

    If you find a consistent error, google it. Find out why that error gets generated. Some errors can be pretty difficult to decipher all by themselves.

    Here are the top lines of my named service on start:
    Each and every zone (domain) hosted in your DNS Zones should show up as "loaded serial" (represented by "thissite.com" and "thatsite.com" above, as an example).

    To see the zones on your server, run this command:

    # ls -l /var/named <enter>​

    The "domain.tld.db" files listed here should all have a corresponding line in the /etc/named.conf file. You can view the whole named.conf file with the "cat" command:
    # cat /etc/named.conf <enter>​


    Good luck.
     
    #5 dafut, Jan 11, 2007
    Last edited: Jan 11, 2007
  6. Immunity

    Immunity Member

    Joined:
    Aug 30, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    root@217-20-113-142 [~]# tail -f /var/log/messages
    Jan 11 10:34:10 217-20-113-142 named[11690]: binding TCP socket: address in use
    Jan 11 10:34:10 217-20-113-142 named[11690]: listening on IPv4 interface eth0:29 , 89.149.197.161#53
    Jan 11 10:34:10 217-20-113-142 named[11690]: binding TCP socket: address in use
    Jan 11 10:34:10 217-20-113-142 named[11690]: listening on IPv4 interface eth0:30 , 89.149.197.162#53
    Jan 11 10:34:10 217-20-113-142 named[11690]: binding TCP socket: address in use
    Jan 11 10:34:10 217-20-113-142 named[11690]: listening on IPv4 interface eth0:31 , 89.149.197.163#53
    Jan 11 10:34:10 217-20-113-142 named[11690]: binding TCP socket: address in use
    Jan 11 10:34:10 217-20-113-142 named[11690]: /etc/named.conf:4: couldn't add com mand channel 127.0.0.1#953: address in use
    Jan 11 10:34:10 217-20-113-142 named[11690]: couldn't open pid file '/var/run/na med/named.pid': Permission denied
    Jan 11 10:34:10 217-20-113-142 named[11690]: exiting (due to early fatal error)



    when i write fg, i got that

    Jan 11 09:58:46 217-20-113-142 named[8531]: lame server resolving 'www.resimturk .net' (in 'resimturk.net'?): 208.101.21.249#53
    Jan 11 09:58:46 217-20-113-142 named[8531]: lame server resolving 'www.resimturk .net' (in 'resimturk.net'?): 208.101.21.248#53
    Jan 11 09:58:52 217-20-113-142 named[9058]: starting BIND 9.2.4 -u bind -c /etc/ named.conf
    Jan 11 09:58:52 217-20-113-142 named[9058]: using 1 CPU
    Jan 11 09:58:52 217-20-113-142 named[9058]: loading configuration from '/etc/nam ed.conf'
    Jan 11 09:58:52 217-20-113-142 named[9058]: /etc/named.conf:1: open: /etc/rndc.k ey: permission denied
    Jan 11 09:58:52 217-20-113-142 named[9058]: loading configuration: permission de nied
    Jan 11 09:58:52 217-20-113-142 named[9058]: exiting (due to fatal error)
    Jan 11 09:58:52 217-20-113-142 named[8531]: lame server resolving 'www.resimturk .net' (in 'resimturk.net'?): 208.101.21.249#53
    Jan 11 09:58:53 217-20-113-142 named[8531]: lame server resolving 'www.resimturk .net' (in 'resimturk.net'?): 208.101.21.248#53
    Jan 11 09:58:53 217-20-113-142 named[8531]: lame server resolving 'www.resimturk .net' (in 'resimturk.net'?): 208.101.21.249#53
    Jan 11 09:58:53 217-20-113-142 named[8531]: lame server resolving 'www.resimturk
     
    #6 Immunity, Jan 11, 2007
    Last edited: Jan 11, 2007
  7. Immunity

    Immunity Member

    Joined:
    Aug 30, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    i will look at to your examples again. Thank you very much for your interest.
     
  8. dafut

    dafut Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Here's your problem:

    Jan 11 09:58:52 217-20-113-142 named[9058]: /etc/named.conf:1: open: /etc/rndc.k ey: permission denied
    Jan 11 09:58:52 217-20-113-142 named[9058]: loading configuration: permission de nied
    Jan 11 09:58:52 217-20-113-142 named[9058]: exiting (due to fatal error)


    You've got a permissions problem, by what it looks like.

    Permissions for /etc/rndc.key should be "named" for both user and group. In SSH, do this:

    # chown named.named /etc/rndc.key​

    Might also want to check your /etc/rndc.conf file. Should be owned by root; group should be named.

    -rw-r----- 1 root named 1101 Aug 15 2005 /etc/rndc.conf
    -rw------- 1 named named 132 Aug 15 2005 /etc/rndc.key​

    It's possible that your OS may be different (use different permissions)...if so, check the support forums for that OS. I'm on Red Hat...
     
  9. naveen3

    naveen3 Active Member

    Joined:
    Jan 28, 2005
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    thanks it helped me.

    chown named.named /etc/rndc.key
     
Loading...

Share This Page