ich bin gerade am verzweifeln. Ich versuche eine Standard debian bind9 Installation ohne forwarding einzurichten.
Jedoch werden anscheinend die ROOT Server nicht verwendet.
Anbei meine Config. Vielleicht sieht jemand mein Fehler?
sudo nano /etc/resolv.conf
Code: Alles auswählen
nameserver 127.0.0.1
Code: Alles auswählen
# The primary network interface
allow-hotplug enp1s0
iface enp1s0 inet static
address 192.168.240.182/24
gateway 192.168.240.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 127.0.0.1
sudo nano /etc/bind/named.conf.options
Code: Alles auswählen
acl "trusted" {
192.168.240.0/24;
127.0.0.1;
localhost;
};
options {
directory "/var/cache/bind";
dnssec-validation auto;
listen-on-v6 { none; };
allow-query { trusted; };
allow-recursion { trusted; };
listen-on { 127.0.0.1; 192.186.240.182; };
};
sudo nano /etc/bind/named.conf (unverändert)
Code: Alles auswählen
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
Code: Alles auswählen
zone "." {
type hint;
file "/usr/share/dns/root.hints";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
Code: Alles auswählen
net.ipv4.ip_forward=1
Auf meinem DNS Server erhalte ich folgende Meldung:
dig 127.0.0.1 google.de
Code: Alles auswählen
; <<>> DiG 9.18.19-1~deb12u1-Debian <<>> 127.0.0.1 google.de
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 34169
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: e837e8b7d09e9def01000000652788545d8dd9fd201a144c (good)
;; QUESTION SECTION:
;127.0.0.1. IN A
;; AUTHORITY SECTION:
. 10798 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2023101102 1800 900 604800 86400
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Thu Oct 12 07:47:00 CEST 2023
;; MSG SIZE rcvd: 141
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41979
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: e837e8b7d09e9def01000000652788545d8dd9fd201a144c (good)
;; QUESTION SECTION:
;google.de. IN A
;; ANSWER SECTION:
google.de. 253 IN A 142.250.74.195
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Thu Oct 12 07:47:00 CEST 2023
;; MSG SIZE rcvd: 82