====== bind Vorwärts und Rückwärtszone über DHCP-Server pflegen ====== dnssec-keygen -a HMAC-MD5 -b 128 -n USER ddns ===== bind ===== ''/etc/named.conf'' : (openSuSE 12.1) ''/etc/bind/named.conf.local'' : (debian 6.0) key ddns { algorithm HMAC-MD5.SIG-ALG.REG.INT; secret "PJG5+iDkLgLFsbXhY0Zz0g=="; }; zone "linuxhotel.de" { type master; file "dyn/linuxhotel.de"; allow-update { key ddns; }; notify yes; }; zone "1.168.192.in-addr.arpa" { type master; file "dyn/1.168.192.in-addr.arpa"; allow-update { key ddns; }; notify yes; }; === debian 6.0 === cd /var/cache/bind mkdir dyn === bestehende Zonendateien übernehmen === mv master/{linuxhotel.de,1.168.192.in-addr.arpa} dyn chown -R bind dyn ===== dhcpd ===== ''/etc/dhcpd.conf'' : (openSuSE 12.1) (( Ein Client erscheint erst im DNS, nachdem er einmal beim DHCP Server angefragt hat (der Eintrag in der ''dhcpd.conf'' bzw. ein Reload des dhcpd bewirken noch kein ddns-update) )) authoritative; ddns-update-style interim; ignore client-updates; use-host-decl-names on; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.50 192.168.1.99; option domain-name-servers 192.168.1.6; option domain-name "linuxhotel.de"; option routers 192.168.1.1; option broadcast-address 192.168.1.255; default-lease-time 3600; max-lease-time 7200; } key DHCP_UPDATER { algorithm HMAC-MD5.SIG-ALG.REG.INT; secret PJG5+iDkLgLFsbXhY0Zz0g==; }; zone linuxhotel.de. { primary 127.0.0.1; key DHCP_UPDATER; } zone 1.168.192.in-addr.arpa. { primary 127.0.0.1; key DHCP_UPDATER; } host vm43 { hardware ethernet 52:54:00:00:01:42; ddns-hostname vm43; } # Statische leases im DNS einzutragen wird vom ISC nicht empfohlen. # Wenn man das macht, werden bei Änderung der IP-Adresse die alten # PTR-Records nicht entfernt. A-Records werden aktualisiert. update-static-leases on; host testzy { hardware ethernet 52:54:00:00:01:23; fixed-address 192.168.1.111; ddns-hostname testzy; }