ich habe mit debian stretch einen isc-dhcpd mit einem failover mit einer bind9 master/slave config gebaut.
Das Problem ist nun, dass einige der statischen Hosts, im DNS nicht mit dem Namen aus der dhcpd.conf
registriert werden, was eine einigen Ecken zu Problemen führt.
Fehler: z.B.
Code: Alles auswählen
Oct 28 15:58:05 homeserver dhcpd[27938]: DHCPDISCOVER from 8c:cd:e8:88:bf:e0 via eth0
Oct 28 15:58:05 homeserver dhcpd[27938]: DHCPOFFER on 192.168.1.55 to 8c:cd:e8:88:bf:e0 via eth0
Oct 28 15:58:05 homeserver dhcpd[27938]: DHCPREQUEST for 192.168.1.55 (192.168.1.5) from 8c:cd:e8:88:bf:e0 via eth0
Oct 28 15:58:05 homeserver dhcpd[27938]: DHCPACK on 192.168.1.55 to 8c:cd:e8:88:bf:e0 via eth0
Oct 28 15:58:05 homeserver named[29746]: client 192.168.1.5#62663/key rndc-key: signer "rndc-key" approved
Oct 28 15:58:05 homeserver named[29746]: zone linux.site/IN: Nintendo\032Wii\032U.linux.site/A: bad owner name (check-names)
Oct 28 15:58:05 homeserver named[29746]: client 192.168.1.6#1059/key rndc-key: signer "rndc-key" approved
Oct 28 15:58:05 homeserver named[29746]: zone linux.site/IN: Nintendo\032Wii\032U.linux.site/A: bad owner name (check-names)
Oct 28 15:58:05 homeserver dhcpd[27938]: Unable to add forward map from Nintendo Wii U.linux.site to 192.168.1.55: REFUSED
Code: Alles auswählen
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "linux.site";
option domain-search "linux.site";
option domain-name-servers 192.168.1.5, 192.168.1.6;
#allow booting;
#allow bootp;
#filename "pxelinux.0";
#next-server 192.168.1.5;
#default lease 4H, max lease 8H
default-lease-time 14400;
max-lease-time 28800;
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none'fixed-address since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style standard;
include "/etc/bind/rndc.key";
ddns-domainname "linux.site";
ddns-updates on;
update-static-leases on;
use-host-decl-names on;
deny client-updates;
deny duplicates;
# If this DHCP server is the official DHCP server for the local
# networkfixed-address the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
failover peer "failover-partner" {
primary;
address homeserver.linux.site;
port 519;
peer address failover.linux.site;
peer port 520;
max-response-delay 60;
max-unacked-updates 10;
mclt 3600;
split 128;
load balance max seconds 3;
}
omapi-port 7911;
omapi-key omapi_key;
key omapi_key {
algorithm hmac-md5;
secret xxxxxxxxxxxxxxxxx;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
# range 192.168.1.245 192.168.1.251;
option domain-name "linux.site";
option domain-search "linux.site";
option domain-name-servers 192.168.1.5, 192.168.1.6;
option routers 192.168.1.2;
option ntp-servers 192.168.1.2;
option broadcast-address 192.168.1.255;
#default lease 4H, max lease 8H
default-lease-time 14400;
max-lease-time 28800;
pool {
failover peer "failover-partner";
range 192.168.1.245 192.168.1.251;
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.5;
key "rndc-key";
}
zone linux.site. {
primary 192.168.1.5;
key "rndc-key";
}
}
include "/etc/dhcp/statdef.conf";
Code: Alles auswählen
host WiiU {
hardware ethernet 8c:cd:e8:88:bf:e0;
fixed-address 192.168.1.55;
# option host-name "WiiU";
}
zu use-host-decl-names äquivalent sein.
Hat jemand eine Idee was ich übersehen habe?

linuxpaul
edit:
die jeweiligen configs habe ich zum failover immer synchronisiert