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.

DNS only and daily message

Discussion in 'General Discussion' started by upsforum, Sep 7, 2015.

  1. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    Every day I receive this message from one of DNS server:

    Subject: Output from your job 187

    Body:

    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you verify if Named is configured in a chroot environment? Post the output from:

    Code:
    rpm -qa|grep bind-chroot
    cat /etc/sysconfig/named
    Thank you.
     
  3. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    Code:
    root@dns1 [~]# rpm -qa|grep bind-chroot
    bind-chroot-9.8.2-0.30.rc1.el6_6.1.x86_64
    root@dns1 [~]# cat /etc/sysconfig/named
    # BIND named process options
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~
    # Currently, you can use the following options:
    #
    # ROOTDIR="/var/named/chroot"  --  will run named in a chroot environment.
    #                            you must set up the chroot environment
    #                            (install the bind-chroot package) before
    #                            doing this.
    #       NOTE:
    #         Those directories are automatically mounted to chroot if they are
    #         empty in the ROOTDIR directory. It will simplify maintenance of your
    #         chroot environment.
    #          - /var/named
    #          - /etc/pki/dnssec-keys
    #          - /etc/named
    #          - /usr/lib64/bind or /usr/lib/bind (architecture dependent)
    #
    #         Those files are mounted as well if target file doesn't exist in
    #         chroot.
    #          - /etc/named.conf
    #          - /etc/rndc.conf
    #          - /etc/rndc.key
    #          - /etc/named.rfc1912.zones
    #          - /etc/named.dnssec.keys
    #          - /etc/named.iscdlv.key
    #
    #       Don't forget to add "$AddUnixListenSocket /var/named/chroot/dev/log"
    #       line to your /etc/rsyslog.conf file. Otherwise your logging becomes
    #       broken when rsyslogd daemon is restarted (due update, for example).
    #
    # OPTIONS="whatever"     --  These additional options will be passed to named
    #                            at startup. Don't add -t here, use ROOTDIR instead.
    #
    # KEYTAB_FILE="/dir/file"    --  Specify named service keytab file (for GSS-TSIG)
    ROOTDIR=/var/named/chroot
    root@dns1 [~]#
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    I applied but now received this

    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.rfc1912.zones: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.iscdlv.key: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.root.key: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.conf: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.rfc1912.zones: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.iscdlv.key: No such file or directory
    repquota: Cannot resolve mountpoint path (deleted)/var/named/chroot/etc/named.root.key: No such file or directory
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Try running the following commands:

    Code:
    /scripts/clear_orphaned_virtfs_mounts
    /scripts/fixquotas
    Do you still see the /var/named/chroot entries in the /proc/mounts file?

    Thank you.
     
  7. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    this is my /proc/mounts

    Code:
    /dev/ploop28790p1 / ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
    proc /proc proc rw,relatime 0 0
    sysfs /sys sysfs rw,relatime 0 0
    none /dev devtmpfs rw,relatime,mode=755 0 0
    none /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
    none /dev/shm tmpfs rw,relatime 0 0
    none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
    /dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.conf ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
    /dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.rfc1912.zones ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
    /dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.iscdlv.key ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
    /dev/ploop28790p1 \040(deleted)/var/named/chroot/etc/named.root.key ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page