Salut,
Ma tem ca va fi putin cam lung mailul

ip a: (am scos loopback):

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UP group default qlen 1000
    link/ether b8:27:eb:b0:84:86 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.5/24 brd 192.168.8.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::ba27:ebff:feb0:8486/64 scope link tentative dadfailed
       valid_lft forever preferred_lft forever


ip r:

default via 192.168.8.1 dev eth0
192.168.8.0/24 dev eth0  proto kernel  scope link  src 192.168.8.5



named:

cat /etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server named.
//.....
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

___________________________________
cat /etc/bind/named.conf.options
options {
    directory "/var/cache/bind";
    auth-nxdomain no;

    forwarders {
        192.168.8.1;
        8.8.8.8;
    };

    allow-query {
        192.168.8/24;
        127.0.0.1;
    };
    listen-on { any; };
    statistics-file    "named_stats.txt";
    memstatistics-file    "named_mem_stats.txt";
    dnssec-enable    yes;
    version "Sorry!";
};

__________________________________
cat /etc/bind/named.conf.local
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
include "/etc/bind/rndc.key";

zone "home.org" {
    type master;
    file "/var/lib/bind/home.org.hosts";
    allow-update { key "rndc-key"; };
};

zone "8.168.192.in-addr.arpa" {
    type master;
    file "/var/lib/bind/8.168.192.rev";
    allow-update { key "rndc-key"; };
};

__________________________________
cat /etc/bind/named.conf.default-zones
// prime the server with knowledge of the root servers
zone "." {
    type hint;
    file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
    type master;
    file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
    type master;
    file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
    type master;
    file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
    type master;
    file "/etc/bind/db.255";
};


2016-07-31 1:14 GMT+03:00 Catalin Muresan <[email protected]>:

> 2016-07-30 22:59 GMT+01:00 Catalin Soare <[email protected]>:
>
> > Salut,
> >
> > Incep prin a spune ca nu am prea multa experienta cu serverul bind pe
> > Linux. Nu pot spune ca am prea multa experienta cu Linuxul, dar destul cu
> > laudatul:
> >
> > Am un Raspbrry Pi ce-l folosesc ca si server de dns(bind) si dhcp
> > (isc-dhcp-server).
> >
> > L-am folosit unde am locuit inainte, si aveam reteaua 192.168.1.0, aveam
> > domeniu home.org, totul era ok si eram fericit.
> >
> > Problema apare cand m-am mutat intr-o noua locatie, am schimbat
> providerul
> > de net, iar routerul are default 192.168.8.0.
> >
> > Am scos setarea de pe router, sa nu mai dea dhcp si am schimbat pe
> > raspberry pi tot ce am gasit '192.168.1.' cu '192.168.8.', inclusiv in
> > reverse dns.
> >
> > Toate calculatoarele imi iau IP cum trebuie, de la RPi, si aparent isi
> iau
> > si serverul de dns, 192.168.8.5. Adica daca dau la connection info, apare
> > serverul de dns care trebuie.
> > Dar daca dau ping intr-un hostname din domeniul local, nu il gaseste.
> >
> > Interesant e ca, nici de pe serverul de dns, daca dau un ping in
> home.org,
> > nu mai stie ce e ala.
> > Altfel, el stie sa faca forward si rezolva fara probleme adrese externe.
> >
> > Are cineva idee ce ar trebui sa mai schimb?
> > Sau sa dau paste la ceva aditional?
> >
> > M-as bucura de orice sugestie.
> >
>
> Sugerez sa ne arati si noua configuratia retelei, configuratia dns:
>
> ip a
> ip r
> cat /etc/named.conf
>
> pentru indeput
>
>
>
> >
> > --Sent from my Brick (TM)
> > _______________________________________________
> > RLUG mailing list
> > [email protected]
> > http://lists.lug.ro/mailman/listinfo/rlug
> >
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug
>



-- 
Regards,
*Catalin Soare <[email protected]>*
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui