HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   bind9 problems (http://www.howtoforge.com/forums/showthread.php?t=32127)

x-spirit 5th March 2009 10:59

bind9 problems
 
I have several questions,
firstly how can I generate a full log on bind9 somewhere?
I've tried the logging clause but it seems I wasn't able to figure it out.
Tt this moment it looks like this:
Code:

logging {
        channel default_debug {
                file "/var/log/bind.log";
                print-time yes;
                print-category yes;
                print-severity yes;
                };
        category queries { default_debug; };
        category network { default_debug; };
};

I'm trying to access log files in order to understand why my bind9 is not working. When I try to resolve something a 'timed-out' request comes back.
I've transfered zones from an old server and configured them carefully. I don't know where the problem is.. Can someone help ?

topdog 5th March 2009 16:59

timeout usually means the packets are either not getting to the destination or not returning.

x-spirit 5th March 2009 18:04

So.. can you suggest where to start traceing the problem.
Becouse I don't have logs either. /var/log/syslog and /var/log/messages are silent about problems with the bind..

falko 6th March 2009 13:35

Which distribution are you using? How exactly did you set up BIND? Is it running chrooted?

x-spirit 6th March 2009 14:03

a fresh installation of debian lenny, yes, it is chrooted

chipsafts 6th March 2009 18:34

firewall setup ?

falko 7th March 2009 14:58

Yes, could be the firewall. What's the output of
Code:

iptables -L
?

How exactly did you install BIND?

x-spirit 8th March 2009 01:12

apt-get install bind :)
and I haven't set a firewall yet, the ipchains are empty.

falko 8th March 2009 16:12

What's the output of
Code:

netstat -tap
?

x-spirit 8th March 2009 19:58

Code:

ns:/home/x-spirit# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
tcp        0      0 *:imaps                *:*                    LISTEN      8165/dovecot
tcp        0      0 *:pop3s                *:*                    LISTEN      8165/dovecot
tcp        0      0 *:ldap                  *:*                    LISTEN      2762/slapd
tcp        0      0 localhost:10024        *:*                    LISTEN      2587/amavisd (maste
tcp        0      0 localhost:10025        *:*                    LISTEN      7997/master
tcp        0      0 localhost:mysql        *:*                    LISTEN      2653/mysqld
tcp        0      0 *:pop3                  *:*                    LISTEN      8165/dovecot
tcp        0      0 *:imap2                *:*                    LISTEN      8165/dovecot
tcp        0      0 *:sunrpc                *:*                    LISTEN      2292/portmap
tcp        0      0 ns.refer.bg:domain      *:*                    LISTEN      13084/named
tcp        0      0 localhost:domain        *:*                    LISTEN      13084/named
tcp        0      0 *:ssh                  *:*                    LISTEN      967/sshd
tcp        0      0 *:50008                *:*                    LISTEN      2303/rpc.statd
tcp        0      0 localhost:953          *:*                    LISTEN      13084/named
tcp        0      0 *:smtp                  *:*                    LISTEN      7997/master
tcp        0      0 localhost:ldap          localhost:48485        ESTABLISHED 2762/slapd
tcp        0      0 ns.refer.bg:ssh        router2.refer.bg:33047  ESTABLISHED 18642/sshd: x-spiri
tcp        0      0 localhost:48485        localhost:ldap          ESTABLISHED 2778/nscd
tcp        0      0 ns.refer.bg:ssh        router2.refer.bg:36153  ESTABLISHED 9751/sshd: x-spirit
tcp        0      0 localhost:56951        localhost:ldap          ESTABLISHED 8166/dovecot-auth
tcp        0      0 localhost:ldap          localhost:56951        ESTABLISHED 2762/slapd
tcp6      0      0 [::]:ldap              [::]:*                  LISTEN      2762/slapd
tcp6      0      0 [::]:www                [::]:*                  LISTEN      19142/apache2
tcp6      0      0 [::]:ssh                [::]:*                  LISTEN      967/sshd
tcp6      0      0 localhost:953          [::]:*                  LISTEN      13084/named
tcp6      0      0 [::]:https              [::]:*                  LISTEN      19142/apache2



All times are GMT +2. The time now is 14:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.