You are not logged in.

#1 2009-08-17 14:59:28

taz
Member
Registered: 2009-03-04
Posts: 24

magic with bind9 [solved]

hi all.
i've just setup my own dns server for my domain... and it's dont work o_0
named daemon just can't see the conf file.
logs:

bash-4.0# /etc/rc.d/named restart
:: Stopping DNS                                                                                                                                       [DONE]
:: Starting DNS                                                                                                                                       [DONE]

messages


Aug 17 18:54:07 tazhate named[3058]: starting BIND 9.6.1-P1 -u named
Aug 17 18:54:07 tazhate named[3058]: built with '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--with-libtool' '--enable-shared' '--disable-thr$
Aug 17 18:54:07 tazhate named[3058]: using up to 4096 sockets
Aug 17 18:54:07 tazhate named[3058]: loading configuration from '/etc/named.conf'
Aug 17 18:54:07 tazhate named[3058]: using default UDP/IPv4 port range: [1024, 65535]
Aug 17 18:54:07 tazhate named[3058]: using default UDP/IPv6 port range: [1024, 65535]
Aug 17 18:54:07 tazhate named[3058]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 17 18:54:07 tazhate named[3058]: listening on IPv4 interface eth0, 84.52.79.152#53
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 0.IN-ADDR.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 127.IN-ADDR.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 254.169.IN-ADDR.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: D.F.IP6.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 8.E.F.IP6.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: 9.E.F.IP6.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: A.E.F.IP6.ARPA
Aug 17 18:54:07 tazhate named[3058]: automatic empty zone: B.E.F.IP6.ARPA
Aug 17 18:54:07 tazhate named[3058]: command channel listening on 127.0.0.1#953
Aug 17 18:54:07 tazhate named[3058]: command channel listening on ::1#953
Aug 17 18:54:07 tazhate named[3058]: zone 0.0.127.in-addr.arpa/IN: loaded serial 42
Aug 17 18:54:07 tazhate named[3058]: zone localhost/IN: loaded serial 42
Aug 17 18:54:07 tazhate named[3058]: running

config

cat /etc/named.conf                                                                                                                                
//                                                                                                                                                           
// /etc/named.conf                                                                                                                                           
//                                                                                                                                                           

options {
        directory "/var/named";
        pid-file "/var/run/named/named.pid";
        auth-nxdomain yes;                  
        datasize default;                   
// Uncomment these to enable IPv6 connections support
// IPv4 will still work:
//      listen-on-v6 { any; };
// Add this for no IPv4:
        listen-on { any; };

        // Default security settings.
        allow-recursion { 127.0.0.1; };
        allow-transfer { none; };
        allow-update { none; };
    version none;
    hostname none;
    server-id none;
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-transfer { any; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "127.0.0.zone";
        allow-transfer { any; };
};

zone "." IN {
        type hint;
        file "root.hint";
};

zone "tazhate.ru" IN {
        type master;
        file "/var/named/tazhate.ru.host";
};

logging {
        channel xfer-log {
                file "/var/log/named.log";
                print-category yes;
                print-severity yes;
                print-time yes;
                severity info;
        };
        category xfer-in { xfer-log; };
        category xfer-out { xfer-log; };
        category notify { xfer-log; };
};

dns record

cat /var/named/tazhate.ru.host
$TTL 14400
@       IN      SOA     ns1.tazhate.ru.      taz.inside@gmail.com. (
                                                2009072704
                                                14400
                                                3600
                                                1209600
                                                86400 )

tazhate.ru.   14400   IN      NS      ns1.tazhate.ru.
tazhate.ru.   14400   IN      NS      ns2.tazhate.ru.
ns1.tazhate.ru. 14400   IN      A       84.52.79.152
ns1.tazhate.ru. 14400   IN      A       84.52.79.152
tazhate.ru.   14400   IN      A       84.52.79.152
ftp     14400   IN      A       84.52.79.152
localhost       14400   IN      A       127.0.0.1
mail    14400   IN      A       84.52.79.152
pop     14400   IN      A       84.52.79.152
smtp    14400   IN      A       84.52.79.152
www     14400   IN      A       84.52.79.152

tazhate.ru.   14400   IN      MX      10 mail



tazhate.ru.   14400   IN      TXT     "v=spf1 a mx ip4:84.52.79.152 ~all"

how can i fix this? o_0
BIND 9.6.1-P1

Last edited by taz (2009-08-17 16:35:32)


linux is <3

Offline

#2 2009-08-17 16:35:04

taz
Member
Registered: 2009-03-04
Posts: 24

Re: magic with bind9 [solved]

i have done
named -c /etc/named.conf -g -d 10
this was an error in dns record, i should use . insted of @ in my email.


linux is <3

Offline

Board footer

Powered by FluxBB