Es gibt einen bind9 Master (dieser Rechner) und einen Slave (192.168.2.1 - fritzbox) Der Rechner war jetzt mehrere Tage ausgeschaltet, da ich eine Festplatte gewechselt habe.
cat /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.2.2 netmask 255.255.255.0 network 192.168.2.0 broadcast 192.168.2.255 gateway 192.168.2.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 127.0.0.1 # 192.168.2.2 domain geheim.lan
wenn ich nun ping google.de eingebe, bekomme ich sofort zurück:
ping: unknown host google.de
Aber: dig @192.168.2.2 google.de
; <<>> DiG 9.9.5-3ubuntu0.13-Ubuntu <<>> @192.168.2.2 google.de ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52695 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;google.de. IN A ;; ANSWER SECTION: google.de. 300 IN A 172.217.23.163 ;; AUTHORITY SECTION: google.de. 86399 IN NS ns4.google.com. google.de. 86399 IN NS ns2.google.com. google.de. 86399 IN NS ns1.google.com. google.de. 86399 IN NS ns3.google.com. ;; ADDITIONAL SECTION: ns1.google.com. 172578 IN A 216.239.32.10 ns2.google.com. 172578 IN A 216.239.34.10 ns3.google.com. 172578 IN A 216.239.36.10 ns4.google.com. 172578 IN A 216.239.38.10 ;; Query time: 67 msec ;; SERVER: 192.168.2.2#53(192.168.2.2) ;; WHEN: Fri Feb 24 10:43:52 CET 2017 ;; MSG SIZE rcvd: 200
dig @127.0.0.1 google.de
; <<>> DiG 9.9.5-3ubuntu0.13-Ubuntu <<>> @127.0.0.1 google.de ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32763 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;google.de. IN A ;; ANSWER SECTION: google.de. 230 IN A 172.217.23.163 ;; AUTHORITY SECTION: google.de. 86329 IN NS ns3.google.com. google.de. 86329 IN NS ns1.google.com. google.de. 86329 IN NS ns4.google.com. google.de. 86329 IN NS ns2.google.com. ;; ADDITIONAL SECTION: ns1.google.com. 172508 IN A 216.239.32.10 ns2.google.com. 172508 IN A 216.239.34.10 ns3.google.com. 172508 IN A 216.239.36.10 ns4.google.com. 172508 IN A 216.239.38.10 ;; Query time: 8 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Feb 24 10:45:02 CET 2017 ;; MSG SIZE rcvd: 200
Aber host und nslookup scheinen nicht zu funktionieren
Weiß jemand woran es liegt?