Help with bind9 on Ubuntu Server

0

I'm doing a DNS server with BInd9 on Ubuntu Server, my server works but I can not do reverse domains (PTR).

-I have this in 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";

zone "sergio.com" {
   type master;
   file "/etc/bind/db.sergio.com";
};

zone "0.1.168.192.in-addr.arpa" {
   type master;
   file "/etc/bind/192.168.1.0.rev";
};

-My db.sergio.com file taken from db.local:

;
; BIND data file for local loopback interface
;
$TTL   604800
@   IN   SOA   servidor.sergio.com. root.sergio.com. (
               2      ; Serial
          604800      ; Refresh
           86400      ; Retry
         2419200      ; Expire
          604800 )   ; Negative Cache TTL
;
sergio.com.   IN   NS   servidor.sergio.com.
sergio.com.   IN   A   192.168.1.141
servidor   IN   A   192.168.1.141
sergio-mint.sergio.com.   IN   A   192.168.1.142
www   IN   CNAME   sergio.com.
ftp   IN   CNAME   sergio.com.
mail   IN   CNAME   sergio.com.
pc1-mint   IN   CNAME   sergio-mint.sergio.com.
dns-local   IN   CNAME   sergio.com.

-And my file 192.168.1.0.rev taken from db.127:

;
; BIND reverse data file for local loopback interface
;
$TTL   604800
0.1.168.192   IN   SOA   servidor.sergio.com. root.sergio.com. (
               1      ; Serial
          604800      ; Refresh
           86400      ; Retry
         2419200      ; Expire
          604800 )   ; Negative Cache TTL
;
0.1.186.192.in-addr.arpa.   IN   NS   servidor.sergio.com.
141.1.168.192.in-addr.arpa.   IN   PTR   servidor.sergio.com.
142.1.168.192.in-addr.arpa.   IN   PTR   sergio-mint.sergio.com

And if I do one:

sudo named-checkzone 0.1.168.192.in-addr.arpta /etc/bind/192.168.1.0.rev

this appears to me:

/etc/bind/192.168.1.0.rev:5: SOA record not at top of zone (0.1.168.192.0.1.168.192.in-addr.arpta)
/etc/bind/192.168.1.0.rev:12: ignoring out-of-zone data (0.1.186.192.in-addr.arpa)
/etc/bind/192.168.1.0.rev:13: ignoring out-of-zone data (141.1.168.192.in-addr.arpa)
/etc/bind/192.168.1.0.rev:14: ignoring out-of-zone data (142.1.168.192.in-addr.arpa)
zone 0.1.168.192.in-addr.arpta/IN: loading from master file /etc/bind/192.168.1.0.rev failed: not at top of zone
zone 0.1.168.192.in-addr.arpta/IN: not loaded due to errors.
    
asked by user96431 07.10.2018 в 02:17
source

0 answers