Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
fortgeschrittene:ddns [2012/04/10 12:51] ingo_wichmann |
fortgeschrittene:ddns [2012/05/10 19:25] (aktuell) ingo_wichmann [bind] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== bind Vorwärts und Rückwärtszone über DHCP-Server pflegen ====== | ====== bind Vorwärts und Rückwärtszone über DHCP-Server pflegen ====== | ||
+ | dnssec-keygen -a HMAC-MD5 -b 128 -n USER ddns | ||
+ | |||
===== bind ===== | ===== bind ===== | ||
''/etc/named.conf'' : (openSuSE 12.1) | ''/etc/named.conf'' : (openSuSE 12.1) | ||
+ | |||
+ | ''/etc/bind/named.conf.local'' : (debian 6.0) | ||
<file> | <file> | ||
- | key DHCP_UPDATER { | + | key ddns { |
algorithm HMAC-MD5.SIG-ALG.REG.INT; | algorithm HMAC-MD5.SIG-ALG.REG.INT; | ||
- | #secret RdmrPr8EtJ9KCYOzrdMyBg==; | + | secret "PJG5+iDkLgLFsbXhY0Zz0g=="; |
- | secret PJG5+iDkLgLFsbXhY0Zz0g==; | + | |
}; | }; | ||
- | zone "linuxhotel.de" { | + | zone "linuxhotel.de" { |
- | type master; | + | type master; |
- | file "dyn/linuxhotel.de"; | + | file "dyn/linuxhotel.de"; |
- | allow-update { key DHCP_UPDATER; }; | + | allow-update { key ddns; }; |
- | notify yes; | + | notify yes; |
- | }; | + | }; |
- | zone "1.168.192.in-addr.arpa" { | + | zone "1.168.192.in-addr.arpa" { |
- | type master; | + | type master; |
- | file "dyn/1.168.192.in-addr.arpa"; | + | file "dyn/1.168.192.in-addr.arpa"; |
- | allow-update { key DHCP_UPDATER; }; | + | allow-update { key ddns; }; |
- | notify yes; | + | notify yes; |
- | }; | + | }; |
</file> | </file> | ||
+ | |||
+ | === 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 ===== | ===== dhcpd ===== | ||
''/etc/dhcpd.conf'' : (openSuSE 12.1) | ''/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 allein bewirkt noch kein Update) )) | + | (( 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) )) |
<file> | <file> | ||
authoritative; | authoritative; |