Re: DNS Issue

Discussion in 'General' started by TexasTaz, Jul 19, 2007.

  1. TexasTaz

    TexasTaz New Member

    Hey everyone,

    Everything was going good untila after I updated to 2.2.14 version and now my dns is messed up. The following is there error code,

    # tail -f /var/log/messages
    Jul 19 04:57:12 ns1 named[30142]: starting BIND 9.3.3rc2 -u named -t /var/named/chroot
    Jul 19 04:57:12 ns1 named[30142]: found 2 CPUs, using 2 worker threads
    Jul 19 04:57:12 ns1 named[30142]: loading configuration from '/etc/named.conf'
    Jul 19 04:57:12 ns1 named[30142]: listening on IPv4 interface lo, 127.0.0.1#53
    Jul 19 04:57:12 ns1 named[30142]: listening on IPv4 interface eth0, 209.223.47.66#53
    Jul 19 04:57:12 ns1 named[30142]: listening on IPv4 interface eth0:0, 209.223.47.67#53
    Jul 19 04:57:12 ns1 named[30142]: command channel listening on 127.0.0.1#953
    Jul 19 04:57:12 ns1 named[30142]: command channel listening on ::1#953
    Jul 19 04:57:12 ns1 named[30142]: couldn't open pid file '/var/run/bind/run/named.pid': No such file or directory
    Jul 19 04:57:12 ns1 named[30142]: exiting (due to early fatal error)

    Notice near the bottom it says No Such File or directory. How do I fix this please.

    Thank you in advance if I posted in advertantly I apologize but on my search I did not find anything on this.

    Thanks,
     
    Last edited: Jul 19, 2007
  2. falko

    falko Super Moderator Howtoforge Staff

    Is BIND running? What's the output of
    Code:
    netstat -tap
    ?

    If BIND is running, what's the output of
    Code:
    updatedb
    locate named.pid
    ?
     
  3. TexasTaz

    TexasTaz New Member

    Here is th output of netstat -tap

    [root@ns1 admin]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:896 *:* LISTEN 1986/rpc.statd
    tcp 0 0 *:cslistener *:* LISTEN 13310/sc_serv
    tcp 0 0 *:etlservicemgr *:* LISTEN 13310/sc_serv
    tcp 0 0 *:mysql *:* LISTEN 12318/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1949/portmap
    tcp 0 0 *:hosts2-ns *:* LISTEN 6204/ispconfig_http
    tcp 0 0 *:ftp *:* LISTEN 11408/proftpd: (acc
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2231/cupsd
    tcp 0 0 *:smtp *:* LISTEN 11346/master
    tcp 0 0 localhost.lo:x11-ssh-offset *:* LISTEN 2302/0
    tcp 1 0 ns1.hosthobo.com:58434 ns1.centos.org:http CLOSE_WAIT 2655/python
    tcp 1 0 ns1.hosthobo.com:58436 ns1.centos.org:http CLOSE_WAIT 2655/python
    tcp 0 0 ns1.hosthobo.:etlservicemgr c-76-30-84-16:av-emb-config ESTABLISHED 13310/sc_serv
    tcp 1 0 ns1.hosthobo.com:56382 75.174.92.64.static.re:http CLOSE_WAIT 2655/python
    tcp 1 0 ns1.hosthobo.com:56384 75.174.92.64.static.re:http CLOSE_WAIT 2655/python
    tcp 0 0 ns1.hosthobo.com:cslistener c-76-30-84-169.hsd1:ipdr-sp TIME_WAIT -
    tcp 0 0 ns1.hosthobo.com:cslistener c-76-30-84-169.hsd1.tx:4740 TIME_WAIT -
    tcp 0 0 *:imaps *:* LISTEN 2420/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 2082/pop3-login
    tcp 0 0 *:pop3 *:* LISTEN 2082/pop3-login
    tcp 0 0 *:imap *:* LISTEN 2420/dovecot
    tcp 0 0 *:http *:* LISTEN 2060/httpd
    tcp 0 0 *:ssh *:* LISTEN 2249/sshd
    tcp 0 0 ::1:x11-ssh-offset *:* LISTEN 2302/0
    tcp 0 0 *:https *:* LISTEN 2060/httpd
    tcp 0 576 ns1.hosthobo.com:ssh c-76-30-84-169.hsd1.t:34951 ESTABLISHED 2298/sshd: admin [p

    No it appears bind is not running because the name.pid is not there. It won't start without it.

    This is why I know it's not running:

    Jul 19 04:57:12 ns1 named[30142]: couldn't open pid file '/var/run/bind/run/named.pid': No such file or directory
    Jul 19 04:57:12 ns1 named[30142]: exiting (due to early fatal error)

    updatedb with locate name.pid returned to the prompt with no results.

    Not sure what happened here.

    Thanks for your help.
     
    Last edited: Jul 23, 2007
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in your named.conf?
    What's the output of
    Code:
    ls -la /var/run/bind/run
    ?
    Which distribution do you use?
     
  5. TexasTaz

    TexasTaz New Member

    Dns Issue

    ls -la /var/run/bind/run
    ls: /var/run/bind/run: No such file or directory

    Wow where the hell did the directory go, not good dang it.

    which named.conf do you need to see?

    options {
    pid-file "/var/run/bind/run/named.pid"; <--------------- Here is where it is suppose to be.
    directory "{BINDDIR}";
    auth-nxdomain no;
    allow-recursion {
    localhost;
    };
    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53;
    };

    CentOS 5 is what I am using ......
     
  6. falko

    falko Super Moderator Howtoforge Staff

Share This Page