1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

nameserver on server failed

Discussion in 'Server Configuration and Hosting' started by kuyenmotdivad, Mar 10, 2011.

  1. kuyenmotdivad

    kuyenmotdivad Active Member

    Hi,

    Anyone know how to fix this, I keep getting an email every so often with this email subject and content as below. Any idea how to fix it. Please?

    ---------------------------------
    Subject : nameserver on server failed

    nameserver failed @ Thu Mar 10 21:41:31 2011. A restart was attempted automagically.
    Service Check Method: [check command]

    Cmd Service Check Raw Output: named is not running
     
  2. Cool

    Cool Active Member

    you should find may more explanation in your server log files
     
  3. Deebs

    Deebs Well-Known Member

    check /var/log/messages or /var/log/syslog.
     
  4. KevinL

    KevinL Member

    You should contact Burst.net support. That is who you are with..yeah?
     
  5. Shamil

    Shamil Well-Known Member

    Nope, that the datacenter where the server is colocated. He's hosted with me, and we've contacted cPanel, but they've not been very helpful.
     
  6. Deebs

    Deebs Well-Known Member

    So it is a VPS? Have you investigated why named will not start?
     
  7. kuyenmotdivad

    kuyenmotdivad Active Member

    Had this sent me as well now.

    ------------------------------------------
    Subject : [ipcheck] Problem with DNS setup on server

    IMPORTANT: Do not ignore this email.

    The hostname (server) resolves to . It should resolve to
    64.191.121.238. Please be sure to correct /etc/hosts as well as the
    'A' entry in zone file for the domain.

    Some are all of these problems can be caused by /etc/resolv.conf
    being setup incorrectly. Please check this file if you believe
    everything else is correct.

    You may be able to automatically correct this problem by using the
    'Add an A entry for your hostname' option under 'Dns Functions' in
    your Web Host Manager.
     
  8. Shamil

    Shamil Well-Known Member

    The thing is, is that name has started, and is starting. chkd is even showing it at started :/
     
  9. Shamil

    Shamil Well-Known Member

    I think vzcontrol, a controller in the virtualisation platform we are using is causing this to happen. I've reported this as a bug to OpenVZ, because the hostname should not be resetting itself.
     
  10. Deebs

    Deebs Well-Known Member

    What software is monitoring the VPSs? If named has started then the monitoring software is reporting a false positive for some reason. Can you do a ps -axf on the VPS in question? (if it is not *BSD)
     
  11. Shamil

    Shamil Well-Known Member

    We use OpenVZ as the virtualisation environment, the servers are cPanel servers.
    root@server [~]# ps -axf
    Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
    PID TTY STAT TIME COMMAND
    1 ? Ss 0:00 init [3]
    22204 ? S<s 0:00 /sbin/udevd -d
    22518 ? Ss 0:00 syslogd -m 0
    23553 ? Ss 0:00 /usr/sbin/sshd
    7565 ? Ss 0:00 \_ sshd: root@pts/0
    7573 pts/0 Ss 0:00 \_ -bash
    9890 pts/0 R+ 0:00 \_ ps -axf
    23566 ? Ss 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    23733 ? Ss 0:00 /usr/sbin/exim -bd -q1h
    23758 ? Ss 0:01 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=3 --max-spare=1
    23759 ? S 0:04 \_ spamd child
    23770 ? Ss 0:00 /usr/sbin/dovecot
    23771 ? S 0:00 \_ dovecot-auth
    23797 ? S 0:00 \_ pop3-login
    23798 ? S 0:00 \_ pop3-login
    23799 ? S 0:00 \_ imap-login
    23800 ? S 0:00 \_ imap-login
    7846 ? S 0:00 \_ imap
    7847 ? S 0:00 \_ imap
    7848 ? S 0:00 \_ imap
    7856 ? S 0:00 \_ imap
    7858 ? S 0:00 \_ imap
    7862 ? S 0:00 \_ imap
    7864 ? S 0:00 \_ imap
    23838 ? Ss 0:00 pure-ftpd (SERVER)
    23840 ? S 0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
    24020 ? Ss 0:00 crond
    24406 ? S 0:00 cpdavd - accepting connections on 2077 and 2078
    24431 ? S 0:00 cpsrvd - waiting for connections
    24511 ? S 0:00 queueprocd - wait to process a task
    25635 ? S 0:00 tailwatchd
    25661 ? SN 0:00 cpanellogd - sleeping for logs
    25741 ? Ss 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
    25789 ? S 0:00 \_ /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
    25944 ? Ssl 0:00 /usr/sbin/named -u named
    5504 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/server.pid
    5563 ? Sl 0:00 \_ /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/server.err --pid-file=/var/lib/mysql/server.pid
    5479 ? S< 0:00 litespeed (lshttpd)
    5482 ? S< 0:00 \_ httpd (lscgid)
    5483 ? S< 0:00 \_ litespeed (lshttpd)
    5484 ? S< 0:00 \_ litespeed (lshttpd)
    root@server [~]#
     
  12. Deebs

    Deebs Well-Known Member

    Right, I can see the process running. The fault has to lie with the monitoring software, what configs does that have to determine how named is running or not?
     
  13. Shamil

    Shamil Well-Known Member

    chksvrd, it's a cron job run every 15 mins.
     
  14. Deebs

    Deebs Well-Known Member

    Have to be honest here and say I have never heard of that, I always use Monit, and within each VPS I would have a seperate Monit instance responsible for that VPS.

    Aside from my preferences, do you have the config for chksvrd ?
     
  15. Shamil

    Shamil Well-Known Member

    That is the standard cPanel service checker cron script.

    The config is done via cPanel/WHM, web interface, and presents options for user/admin to enable a monitor and monitor it or not. Most options are selected. Named/BIND is both enabled and monitored.
     
  16. kuyenmotdivad

    kuyenmotdivad Active Member

    Someone at cPanel is having a look at the server called Marlon, so hoefully he'll fix it. :)
     

Share This Page