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 broken...

Discussion in 'General Discussion' started by stugster, Jul 26, 2007.

  1. stugster

    stugster Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, UK
    cPanel Access Level:
    Root Administrator
    I've got a cpanel server with centos.

    named has died and all sites are now dead.

    It wouldn't start up, so I've removed it (yum remove) and reinstalled named via WHM rpm installer.

    Named is alive... but all sites are still dead.

    Error on startup was:


    chattr: Inappropriate ioctl for device while reading flags on /var/named/chroot/proc/5832/attr/prev
    chattr: Inappropriate ioctl for device while reading flags on /var/named/chroot/proc/5832/attr/exec
    chattr: Inappropriate ioctl for device while reading flags on /var/named/chroot/proc/5832/attr/fscreate
    chattr: Inappropriate ioctl for device while reading flags on /var/named/chroot/proc/5832/wchan
    chattr: Inappropriate ioctl for device while reading flags on /var/named/chroot/proc/5832/loginuid
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    200
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might try from command line:

    /scripts/rebuildnamedconf
     
  3. Adrnalnrsh

    Adrnalnrsh Well-Known Member

    Joined:
    Apr 6, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    AZ
    Appears the chroot'd bind was installed. I've had several servers with this problem this morning.


    I just removed the rpm.

    rpm -e --nodeps bind-chroot

    /scripts/fixrndc

    And thats it!

    This doesn't mean that chroot'd bind won't be reinstalled at some other point in time .
     
  4. stugster

    stugster Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, UK
    cPanel Access Level:
    Root Administrator
    Didn't resolve it :( wasn't installed in the first place.


    I've submitted a ticket, will let everyone know.
     
  5. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello,
    Just:

    chown named:named /var/named/chroot/etc/rndc.key

    and:

    service named restart
     
  6. Adrnalnrsh

    Adrnalnrsh Well-Known Member

    Joined:
    Apr 6, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    AZ
    Also appears that /etc/named.conf is being cleared out. As all the zones are missing from several servers we run.
     
  7. warlock77

    warlock77 Member

    Joined:
    Apr 24, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problem. I can make named run, but Im getting a lot of NS errors in dnsreport
     
  8. keykurt

    keykurt Member

    Joined:
    Sep 7, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I got the same thing...bind is failing to restart after a reboot. Was something changed in the update?
     
  9. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Got same problem on a centos server only. Any update on this problem?
     
  10. linux10240

    linux10240 Registered

    Joined:
    Apr 25, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    possible fix

    backup /etc and /var/named

    verify bind is chrooted

    restore a good copy of named.conf from backup or recreate it and copy it to /var/named/chroot/etc

    ln -s /var/named/chroot/etc/named.conf /etc/named.conf

    ln -s /var/named/chroot/etc/rndc.conf /etc/rndc.conf

    ln -s /var/named/chroot/etc/rndc.key /etc/rndc.key

    chown root:named /var/named/chroot/etc/named.conf
    chown named:named /var/named/chroot/etc/rndc.conf
    chown named:named /var/named/chroot/etc/rndc.key

    service named restart

    tail -1000 /var/log/messages

    check for permission and other errors if you have errors double check all
    the file and directory permissions

    hope this helps
     
  11. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
    I'd also checkout the rcs log for named.conf:

    Code:
    rlog /etc/named.conf,v
     
  12. psychodreams

    psychodreams Well-Known Member

    Joined:
    Apr 14, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    :)

    same thing happened to my server last night i restored a backup
     
  13. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
  14. phatrik

    phatrik Member

    Joined:
    Jul 27, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Toronto, ON

    That's how you can fix the issue, but why does it happen in the first place? I've had a server running for a while now, and this has happened to me several times. The solution is always to restore named.conf from a backup, but I'd like to find a way to make this stop.


    Rik
     
  15. sachink

    sachink Member

    Joined:
    Oct 15, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    cp /etc/named.conf /etc/named.conf_org

    /scripts/cleandns

    service named restart

    Thank You
    Sachink
     
  16. phatrik

    phatrik Member

    Joined:
    Jul 27, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Toronto, ON


    Thank you for your response but I see that you didn't take the time to read my question.
     
  17. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    /var/named empty ? HELP

    server has /var/named empty - how do we rebuild ?
     
  18. stugster

    stugster Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, UK
    cPanel Access Level:
    Root Administrator
    bind-chroot was uninstalled but named was still in a chroot environment,

    I resolved this by removing bind-chroot from /etc/yum.conf exclude line,
    installing bind-chroot then uninstalling bind-chroot and adding bind-chroot
    back to /etc/yum.conf exclude line.

    named is now setup as default and working normally.

    Please try setting up your nameservers again now, let me know if you have any
    further problems.


    --
    Kevin
    Technical Analyst 3
    cPanel Advanced Support
    ------------------------


    Thanks to Kevin, as above, this problem was now resolved.

    All Centos default installs come with chroot :/
     
Loading...

Share This Page