Results 1 to 10 of 10

Thread: DNS Changes only apply when i restart named

  1. #1
    Member
    Join Date
    Jul 2012
    Posts
    12
    cPanel/WHM Access Level

    Root Administrator

    Default DNS Changes only apply when i restart named

    Hi There,

    This is my first time using cPanel/WHM and i like it very much, however when i add a (sub)domain to my server i need to restart NAMED manually before it actually applies.

    When i add a (sub)domain (example: google.nl) and i PING it on the webserver itself it says:

    ping google.nl
    ping: unknown host google.nl

    And when i do 'service named restart' it resolves perfectly.


    However also when i stop CSF & Iptables it updates it again but it doesnt help always.
    Last edited by razR; 07-18-2012 at 08:06 PM.

  2. #2
    Member
    Join Date
    Jul 2012
    Posts
    12
    cPanel/WHM Access Level

    Root Administrator

    Default Re: DNS Changes only apply when i restart named

    Nobody knows a solution? I'm getting tired to manually reload NAMED every time there is an DNS change occoured.

  3. #3
    Member
    Join Date
    Jul 2012
    Posts
    12
    cPanel/WHM Access Level

    Root Administrator

    Default Re: DNS Changes only apply when i restart named

    UPDATE
    When i do the fixndc command i get the following

    Code:
     /usr/sbin/rndc status failed: WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)rndc: connect failed: 127.0.0.1#953: connection refused
    \

    and

    Code:
    Error reloading bind on web: rndc: connect failed: 127.0.0.1#953: connection refused
    Last edited by razR; 07-19-2012 at 03:39 AM.

  4. #4
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    2,704
    cPanel/WHM Access Level

    Root Administrator

    Default Re: DNS Changes only apply when i restart named

    Hello

    The most important error message in this case is:

    Error reloading bind on web: rndc: connect failed: 127.0.0.1#953: connection refused
    There are several potential causes of this error. Feel free to submit a ticket so we can take a closer look:

    Submit A Ticket

    You can post the ticket number here, and we can update this thread with the exact cause of the problem after the issue is resolved.

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  5. #5
    Member
    Join Date
    Jul 2009
    Posts
    97

    Default Re: DNS Changes only apply when i restart named

    I had this problem few days ago.

    rndc failed to start until I disabled/stopped the 'portreserve' service. You might also need to delete the /etc/named.conf.cache file, new one will be generated automaticly.

  6. #6
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    2,704
    cPanel/WHM Access Level

    Root Administrator

    Default Re: DNS Changes only apply when i restart named

    Quote Originally Posted by radeonpower View Post
    I had this problem few days ago.

    rndc failed to start until I disabled/stopped the 'portreserve' service. You might also need to delete the /etc/named.conf.cache file, new one will be generated automaticly.
    If you would like to determine if that's the cause of this issue, please post the output of the following command:

    Code:
    # grep portrelease /etc/init.d/named
    Depending on the version of CentOS you are using, you should see output such as:

    Code:
     [ -x /sbin/portrelease ] && /sbin/portrelease named &>/dev/null || :
    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  7. #7
    Member
    Join Date
    Jul 2009
    Posts
    97

    Default Re: DNS Changes only apply when i restart named

    I'm using CentOS 6.3 and this command did not output anything.

    root@ns3 [~]# grep portrelease /etc/init.d/named
    root@ns3 [~]#

    The problem stopped anyway after I stopped portreserve. :P

    Funny enough though, I have few servers, some of them have this output and some dont.
    Last edited by radeonpower; 07-19-2012 at 11:02 AM.

  8. #8
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    2,704
    cPanel/WHM Access Level

    Root Administrator

    Default Re: DNS Changes only apply when i restart named

    Quote Originally Posted by radeonpower View Post
    I'm using CentOS 6.3 and this command did not output anything.

    root@ns3 [~]# grep portrelease /etc/init.d/named
    root@ns3 [~]#
    If you are using CentOS 6.3, you can run the following commands to resolve this issue:

    Code:
    # mv /etc/init.d/named /etc/init.d/named.bak
    # yum reinstall bind
    You should then see the expected output when running:

    Code:
    # grep portrelease /etc/init.d/named
    Example output should be:

    Code:
    [ -x /sbin/portrelease ] && /sbin/portrelease named &>/dev/null || :
    If you see this output, you can then run:

    Code:
    # /etc/init.d/named stop; /etc/init.d/portreserve restart; /etc/init.d/named start; netstat -plan | grep 953 | grep named
    This should resolve the issue, and you should no longer receive connection refused errors when reloading rndc.

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  9. #9
    Member
    Join Date
    Jul 2012
    Posts
    12
    cPanel/WHM Access Level

    Root Administrator

    Default Re: DNS Changes only apply when i restart named

    Reinstalling BIND worked, thanks for the help

  10. #10
    Member
    Join Date
    Nov 2009
    Posts
    15

    Default Re: DNS Changes only apply when i restart named

    Got the same error on fresh installation of the CLOUDLINUX 6.3 x86_64 xenhvm
    Re-installed the system. But same error.

    Only resolve after re-installing bind.

    Thanks for the help and its really helpful.

Similar Threads

  1. How to apply a DNS ?
    By Julien PHAM in forum New User Questions
    Replies: 1
    Last Post: 07-10-2009, 02:31 PM
  2. Have to manually restart DNS and FTP after server restart
    By FearlessG1 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 07-18-2007, 08:32 AM
  3. Named not restart
    By mehmetali in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 02-28-2007, 04:38 PM
  4. Having to restart named on primary/secondary DNS after account move
    By joshstein in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 12-14-2005, 05:55 PM
  5. named.conf gets owned by root so named fails to restart
    By webhostnet in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 05-20-2005, 06:22 AM