bind && 2 ifaces

Вопросы связанные с сетями, их настройкой и работой...
Ответить
Аватара пользователя
Gen1us2k
Модератор
Модератор
Сообщения: 771
Зарегистрирован: 02 мар 2010, 16:13

bind && 2 ifaces

Сообщение Gen1us2k » 08 июн 2010, 10:14

не работает %)
[spoiler/etc/bind/named.conf]

Код: Выделить всё

//kg_if=`$ifc $un_if | $g addr: | $sed 's/.*addr:\([^ ]*\) .*/\1/'`
options {                                                          
        directory "/var/bind";                                     

        listen-on-v6 { none; };
Include "/etc/bind/named.conf.incl";

        pid-file "/var/run/named/named.pid";
};

acl "kg-net" {
        89.237.192.0/18;
        81.20.16.0/20;
        194.152.37.0/24;
        212.112.96.0/19;
        92.62.64.0/20;
        77.95.56.0/21;
        212.97.0.0/19;
        212.2.224.0/19;
        91.205.48.0/22;
        81.88.192.0/20;
        193.106.48.0/22;
        94.143.192.0/21;
        217.29.16.0/20;
        212.241.0.0/19;
        85.113.0.0/19;
        195.38.160.0/19;
        212.42.96.0/19;
        194.176.111.0/24;
        85.115.192.0/19;
        194.152.36.0/24;
        95.215.244.0/22;
        85.26.220.0/22;
        91.192.64.0/22;
        213.145.128.0/19;
        109.71.224.0/21;
};

acl "mega" {
        92.245.96.0/19;
        77.235.0.0/19;
        91.213.233.0/24;
        109.201.160.0/19;
};

view "mega"{
        match-clients { "mega"; };
        zone "warlegend.net.kg"{
        type master;
        file "pri/warlegend.net.kg.zone";
        allow-transfer {};
        };
};

view "kg-net" {
        match-clients { "kg-net"; };
        zone "warlegend.net.kg" {
        type master;
        file "pri/warlegend.net.kg.all";
        notify yes;
        also-notify {
                77.235.14.2;
                77.235.14.3;
                212.42.96.1;
        };
        allow-transfer { "kg-net";};
};
};
[/spoiler]

[spoiler/etc/bind/named.conf.incl]

Код: Выделить всё

        listen-on { 127.0.0.1; 77.235.12.36; 92.245.125.196;};
[/spoiler]
[spoiler/etc/bind/pri/warlegend.net.kg.zone]

Код: Выделить всё

$ORIGIN .
$TTL 86400      ; 1 day
warlegend.net.kg                IN SOA  ns1.warlegend.net.kg ns2.warlegend.net.kg (
                                2009051633 ; serial
                                86400      ; refresh (1 day)
                                21600      ; retry (6 hours)
                                3600000    ; expire (5 weeks 6 days 16 hours)
                                3600       ; minimum (1 hour)
                                )
                        NS      ns1.warlegend.net.kg
                        NS      ns2.warlegend.net.kg

$ORIGIN warlegend.net.kg
localhost               A       127.0.0.1
@                       A       77.235.12.36
ns1                     A       77.235.12.36
ns2                     A       77.235.12.36
www                     A       77.235.12.36
[/spoiler]

[spoiler/etc/bind/pri/warlegend.net.kg.all]

Код: Выделить всё

$ORIGIN .
$TTL 3600      ; 1 hour
warlegend.net.kg                IN SOA  ns1.warlegend.net.kg ns2.warlegend.net.kg (
                                2009051633 ; serial
                                3600      ; refresh (1 day)
                                21600      ; retry (6 hours)
                                3600000    ; expire (5 weeks 6 days 16 hours)
                                3600       ; minimum (1 hour)
                                )
                        NS      ns1.warlegend.net.kg
                        NS      ns2.warlegend.net.kg

$ORIGIN warlegend.net.kg
localhost               A       127.0.0.1
ns1                     A       77.235.12.36
ns2                     A       77.235.12.36
$INCLUDE /etc/bind/pri/warlegend.net.kg.all.incl
[/spoiler]

[spoiler/etc/bind/pri/warlegend.net.kg.all.incl]

Код: Выделить всё

@               A        92.245.125.196
www             A        92.245.125.196
[/spoiler]

по идее должно кидать на разные интерфейсы в зависимости от acl'ов

но
nslookup warlegend.net.kg

Non-authoritative answer:
Name: warlegend.net.kg
Address: 77.235.12.36

с акнета
Подскажите, где у меня настроено через /dev/ass %)
Изображение
Home: Windows Heaven
Home: Debian 6
For Servers: Debian || RHEL Based || Gentoo || FreeBSD
Аватара пользователя
Raven
Бородатый сис
Бородатый сис
Сообщения: 2800
Зарегистрирован: 03 мар 2010, 15:12
ОС: RHEL 8
Откуда: Из серверной

Re: bind && 2 ifaces

Сообщение Raven » 08 июн 2010, 18:27

Глянь тут, может поможет.
Я не злопамятный, я просто часто ковыряю логи
Аватара пользователя
Gen1us2k
Модератор
Модератор
Сообщения: 771
Зарегистрирован: 02 мар 2010, 16:13

Re: bind && 2 ifaces

Сообщение Gen1us2k » 08 июн 2010, 22:26

не... спасиб, но DYNDNS в последнюю очередь
Изображение
Home: Windows Heaven
Home: Debian 6
For Servers: Debian || RHEL Based || Gentoo || FreeBSD
Ответить

Вернуться в «Networks»