Configure dns Bind9 Debian [closed]

1

I have a network that is configured like this:

Endereço IP:    138.94.189.185  PPPoE
Máscara de Sub-rede:    255.255.255.0    
Gateway:    138.94.189.185   
Servidor DNS:   138.94.188.19 , 8.8.8.8

I'm looking to make my Debian server a hosting server. And for the registry.br find my Dns need to install Bind9 , but I'm not getting it.

When I run the command:

host -l site.local

I have the return:

  

Host site.local not found: 2 (SERVFAIL); Transfer failed.

I'm doing it this way:

/etc/bind/named.conf.options

options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

         forwarders {
                138.94.189.185;
                8.8.8.8;
         };

        //========================================================================
        // If BIND logs error messages about the root key being expired,
        // you will need to update your keys.  See https://www.isc.org/bind-keys
        //========================================================================
        dnssec-validation auto;

        auth-nxdomain no;    # conform to RFC1035

/etc/bind/named.conf.local

// Zona de pesquisa direta
 zone "site.local" {
 type master;
 file "/etc/bind/db.labdns.site.local";
 };
// Zona de pesquisa reversa
 zone "189.94.138.in-addr.arpa" {
 type master;
 file "/etc/bind/db.192";
 };

/etc/bind/db.labdns.site.local

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     webserver.site.local. root.site.local. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      webserver.site.local.
@       IN      A       138.94.189.185
@       IN      AAAA    ::1
webserver IN    A       138.94.189.185
roteador IN     A       10.0.0.1
www     IN      CNAME   site.local.

/etc/bind/db.192

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     webserver.site.local. root.site.local. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      webserver.
1       IN      PTR     roteador.site.local.
185 IN          PTR     webserver.site.local.
    
asked by anonymous 06.06.2017 / 19:59

0 answers