Habe einen Debian 12 Server mit bind9 eingerichtet.
Der server wird gestartet und es werden auch keine Fehler angegeben.
Der Server hat eine Feste IP Adresse 192.168.1.5 und den Namen srv01.
Hostname: srv01
Domainname fritz.box
Teste ich mit dem Befehl:
Host srv01
Bekomme ich nicht die IP angezeigt die der Server hat.
root@srv01:~# host srv01
srv01.fritz.box has address 192.168.1.174
srv01.fritz.box has address 192.168.1.190
Der Test mit IP ergibt:
root@srv01:~# host 192.168.1.5
Host 5.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
Das wird angezeigt aber es ist nicht die richtige adresse vom server.
Selbst in der Netzwerkeinstellung der Fritzbox 7590 sind die IP Adressen nicht vergeben aber gehoeren zum DHCP Pool
der bei 192.168.1.150 beginnt.
Ich bin mit meinem Latein am ende und weis nicht woran es liegt.
named,conf.local
Code: Alles auswählen
//
// 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 "activ.local" IN {
type master;
file "/etc/bind/db.fritz.box";
};
zone "1.168.1.192.in-addr-arpa" IN {
type master;
file "/etc/bind/db.1.168.192.in-addr.arpa";
named.conf.options
Code: Alles auswählen
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 8.8.8.8;192.168.1.1
// };
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
listen-on-v6 { any; };
db.1.168.192.in-addr.arpa Zonedatei
Code: Alles auswählen
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA srv01.fritz.box. root.fritz.box. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS srv01.fritz.box.
192.168.1.5 IN PTR srv01.fritz.box.
192.168.1.199 IN PTR Windows_11.fritz.box.
db.fritz.box Zonedatei
Code: Alles auswählen
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA srv01.fritz.box. root.fritz.box. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS srv01.fritz.box.
srv01 IN A 192.168.1.5
Windows_11 IN A 192.168.1.199
interfaces Datei fuer feste IP
Code: Alles auswählen
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp7s0
iface enp7s0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
nameserver 192.168.1.5
# This is an autoconfigured IPv6 interface
iface enp7s0 inet6 auto