Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

After reboot the service nameserver fails

Discussion in 'Bind / DNS / Nameserver Issues' started by HowardE, Sep 28, 2017.

Tags:
  1. HowardE

    HowardE Member

    Joined:
    Aug 8, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Florida
    cPanel Access Level:
    Root Administrator
    As the title suggests, every time I reboot (graceful) I receive

    This is followed by an email: The service “nameserver” is now operational.

    This has been happening for probably at least a year now, but I only reboot occasionally like when there is a kernel update to centOS. I thought I'd post here before I submitted a ticket, as I didn't think it was ticket worthy as it stands.

    Thanks.
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    327
    Likes Received:
    94
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I see exactly the same whenever I reboot !
    After waiting a few minutes, the system reports
    The problem started immediately after I switched from bind to use pdns, and has been consistently irritating ever since :(
     
    #2 rpvw, Sep 28, 2017
    Last edited: Sep 28, 2017
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Are these systems using CentOS/RHEL 6.x? If so, please post the output from the following commands:

    Code:
    chkconfig --list named
    chkconfig --list pdns
    Thank you.
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    327
    Likes Received:
    94
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    My server is a Cloudlinux 6.9 with cPanel 66.0.23 all fully patched and updated

    Code:
    [root@server ~]# chkconfig --list named
    named           0:off   1:off   2:on    3:on    4:on    5:on    6:off
    
    [root@server ~]# chkconfig --list pdns
    pdns            0:off   1:off   2:off   3:off   4:off   5:off   6:off
    
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can address this issue by ensuring the PDNS service starts at system boot time instead of the Named service. EX:

    Code:
    chkconfig pdns on --level 2345
    chkconfig named off --level 2345
    Thank you.
     
  6. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    327
    Likes Received:
    94
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Thank you Michael, that seems to have worked perfectly :-D

    Was/is there some glitch in the changeover scripting from Bind to pdns ? and if so, maybe it needs looking at, and adding to the bottom of what is sure to a be a (very) long list; to address it ?

    I don't know if it's relevant, I think I changed over from Bind to PowerDNS at version 60 to take advantage of the DNSSEC. The Nameserver failures at reboot started immediately following that change.

    The change was made in WHM >> Service Configuration >> Nameserver Selection by simply selecting the PowerDNS radio button and clicking "Save"

    Everything went OK and we were able to add a DNSSEC record without issue, and I noticed that whenever I called /usr/local/cpanel/scripts/restartsrv_bind or /usr/local/cpanel/scripts/restartsrv_named .... the daemon that was restarted was the /usr/sbin/pdns_server*** so I guessed that the script was now linked to the pdns instead of Bind

    Hope some of my rambling helps someone ! o_O
     
    #6 rpvw, Sep 28, 2017
    Last edited: Sep 28, 2017
  7. HowardE

    HowardE Member

    Joined:
    Aug 8, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Florida
    cPanel Access Level:
    Root Administrator
    Thank you... This solved it.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I tested switching from Bind to PowerDNS on cPanel version 66.0.23 (with CloudLinux 6) using "WHM Home » Service Configuration » Nameserver Selection". Here's the chkconfig output before the conversion:

    Code:
    # chkconfig --list named
    named              0:off    1:off    2:off    3:on    4:off    5:on    6:off
    # chkconfig --list pdns
    error reading information on service pdns: No such file or directory
    Here's the chkconfig output after the conversion:

    Code:
    # chkconfig --list named
    named              0:off    1:off    2:off    3:off    4:off    5:off    6:off
    # chkconfig --list pdns
    pdns               0:off    1:off    2:off    3:on    4:off 5:on    6:off
    As you can see, the conversion correctly disables "named" and enables "pdns" at system startup time. It's possible the issue you faced relates to an internal case that was already solved, like the one referenced on the below thread:

    PowerDNS - YUM EPEL Repo

    Thank you.
     
Loading...

Share This Page