如何在 Kali Linux 中建立 DNS 服务器?

如何在 Kali Linux 中建立 DNS 服务器?

我想做一个DNS服务器,有两个网页,我有db.system.com和db.testing.com:

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns.sistemas.com. root.sistemas.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
@       IN      AAAA    ::1


@       IN      NS      ns.system.com.

ns      IN      A       192.168.100.4

www     IN      A       192.168.100.4
mail    IN      A       192.168.100.4

但是当我运行命令时,它出现:

nslookup 192.168.100.4  
;; communications error to 192.168.100.4#53: connection refused
;; communications error to 192.168.100.4#53: connection refused
;; communications error to 192.168.100.4#53: connection refused
4.100.168.192.in-addr.arpa      name = 192.168.100.4.

This is the /etc/resolv.conf:
# Generated by NetworkManager
nameserver 192.168.100.4
nameserver 192.168.1.1
search Directvnet

相关内容