Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Bind9 for Testing Domain

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
tischuel
Posts: 1
Joined: 2024-04-19 09:51

Bind9 for Testing Domain

#1 Post by tischuel »

Hi,

I try to create a local victim.local-NS with bind9 but even when I try to reach the server itself, I get the error:
"server can't find X.X.X.X.in-addr.arpa: NSDOMAIN"


This ist my db.victim.local

Code: Select all

;
; BIND data file for Zone victim.local
;
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@               IN      NS      server1.victim.local.
@               IN      NS      server2.victim.local.
server1         IN      A       192.168.212.219 ; Windows 2019
server2         IN      A       192.168.212.223 ; Linux-Server
mail            IN      A       192.168.212.223 ; Linux Server (Postfix)
win7            IN      A       192.168.212.201 ; Windows 7
win10           IN      A       192.168.212.202 ; Windows 10
kali            IN      A       192.168.212.203 ; Kali Linux
metasploitable  IN      A       192.168.212.206 ; Metasploitable System
www             IN      CNAME   server1.victim.local.   ;       Alias für Webserver
ftp             IN      CNAME   server1.victim.local.   ;       Alias für FTP-Server
@               IN      MX 10   mail.victim.local.      ;       Mailserver für die Domain


and this my db.0.212.168.192

Code: Select all

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      server2.victim.local.
219     IN      PTR     server1.victim.local.
223     IN      PTR     server2.victim.local.
201     IN      PTR     win7.victim.local.
202     IN      PTR     win10.victim.local.
203     IN      PTR     kali.victim.local.
206     IN      PTR     metasploitable.victim.local.


and named.conf.local

Code: Select all

  GNU nano 7.2                                 /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";

zone "victim.local" {
        type master;
        file "/etc/bind/db.victim.local";
};

zone "212.168.192.in_addr-arpa" {
        type master;
        file "/etc/bind/db.0.212.168.192";
};

What am I doing wrong in here?

Best regards

Timo

Post Reply