Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bind w sieci lokalnej
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
misterLu
Guru
Guru


Joined: 14 Sep 2003
Posts: 430
Location: Poland

PostPosted: Tue Mar 30, 2004 9:41 am    Post subject: bind w sieci lokalnej Reply with quote

mam pare kompów.
Serwer, nazywa się 'mail' i na nim jest odpalony named:
Code:

 # /etc/init.d/named status
 * status:  started

a jego plik konfiguracyjny wygląda tak:
vim /etc/bind/named.conf:
Code:

options {
        directory "/var/bind";

        // uncomment the following lines to turn on DNS forwarding,
        // and change the forwarind ip address(es) :
        //forward first;
        //forwarders {
        //      123.123.123.123
        //      123,123.123.123;
        //};

        listen-on-v6 { none; };
        listen-on { 192.168.99.2; };

        // to allow only specific hosts to use the DNS server:
        allow-query {
                lu;
                192.168.99.1;
                192.168.99.2;
        };

        // if you have problems and are behind a firewall:
        //query-source address * port 53;
        pid-file "/var/run/named.pid";
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "pri/localhost.zone";
        allow-update { none; };
        notify no;
};
zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
        allow-update { none; };
        notify no;
};


u siebie na kompie (o numerze IP 192.168.99.1 i nazwie lu)
robie zapytanie :
dig @mail jakaś.domena
i kupa :(

Jak mam tego binda na sewerze ustawić, zeby odpowiadał na zapytania z lokalnej sieci ??
Back to top
View user's profile Send private message
tokoloshe
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2003
Posts: 116

PostPosted: Tue Mar 30, 2004 2:44 pm    Post subject: Reply with quote

moglbys rozwinac "kupa"?? pokazac jakies pliki z reszta ustawien binda??
Back to top
View user's profile Send private message
misterLu
Guru
Guru


Joined: 14 Sep 2003
Posts: 430
Location: Poland

PostPosted: Tue Mar 30, 2004 3:04 pm    Post subject: Reply with quote

TAk, z radością rozwinę 'kupę'.

Na serwerze (192.168.99.2, mail) który to chce odpytywać reszte plików konfiguracyjnych binda mam NIE-zmienioną.
A /etc/resolv.conf serwera zawiera:
nameserver localhost
nameserver 212.33.64.2
nameserver 213.25.200.5

-------------------------------
natomiast kiedy
u siebie na kompie wpisze do resolv.conf'a
nameserver 192.168.99.2
, to nigdy nie uzyskuje odpowiedzi (Np Opera nie jest w stanie znaleźć żadnej strony :( )

Nawet ruchu w sieci lokalnej nie ma :(

Nie umiem lokalnego resolvera zmusić do zapytania mojego binda na innym kompie :(
Back to top
View user's profile Send private message
tokoloshe
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jul 2003
Posts: 116

PostPosted: Tue Mar 30, 2004 6:59 pm    Post subject: Reply with quote

nic dziwnego ze nie odpowiada, bo bind nie ma sie skad dowiedziec o zmianach nazwy hosta na ip. to ze na serwerze ustawiles w resolv.conf jakies serwery, to one beda dzialac tylko i wylacznie na serwerze.
by bind dzialal poprawnie jako cache (jak mniemam to chcesz osiagnac)
wykomentuj linijki:
Code:
       
forward first;
forwarders {
123.123.123.123
123,123.123.123;
};

no i ja bym zmienil "forward first" na "forward only", tzn. ze Twoj bind, jesli nie zna odpowiedzi, bedzie pytal tylko hosty podane w "forwarders"
a w forwarders wpisz ip dnsow, chyba 212.33.64.2,213.25.200.5
w tym momencie na serwerze w resolv.conf mozesz zostawic sobie juz tylko 127.0.0.1
w ten sposob powinno smigac
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum