我在设置本地 DNS 服务器进行渗透测试时遇到问题。
当我想启动 BIND9 服务器时,我收到错误:
“区域受害者.local/IN:NS 'server1.victim.local' 没有地址记录(A 或 AAAA)
“区域受害者.local/IN:NS 'server2.victim.local' 没有地址记录(A 或 AAAA)
db.victim.local 文件:
;
; 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.
parrot IN A 192.168.178.78 ; Parrot OS
metasploitable IN A 192.168.178.79 ; Metasploitable
www IN CNAME server1.victim.local. ; Alias für Webserver
ftp IN CNAME server1.victim.local. ; Alias für FTP-Server
db.192.168.178.0 文件:
;
; BIND reverse data file for Reverse Zone 192.168.178.0/24
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS server2.victim.local.
212 IN PTR server1.victim.local.
213 IN PTR server2.victim.local.
207 IN PTR win7.victim.local.
210 IN PTR win10.victim.local.
205 IN PTR parrot.victim.local.
206 IN PTR metasploitable.victim.local.