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
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.
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";
};
Best regards
Timo