Sfoglia il codice sorgente

Schlüsselintegration dokumentiert

Patrick Jaeger 8 anni fa
parent
commit
294141ed54
1 ha cambiato i file con 29 aggiunte e 0 eliminazioni
  1. 29 0
      README.md

+ 29 - 0
README.md

@@ -50,6 +50,35 @@ Mit dem Tool `ddns-confgen` (in Debian im Paket bind9 enthalten), den erforderli
50 50
 		grant ddns-key.memory-leak.dre zonesub ANY;
51 51
 	};
52 52
 
53
+Dem Ergebnis und den Anweisungen schließt man sich nahezu vollständig an.
54
+
55
+### Integration des Schlüssels in die Konfiguration
56
+
57
+In die Datei `ddns-key.$zone` kopiert man den ersten Abschnitt:
58
+	root@delta:/etc/bind# cat ddns-key.memory-leak.dre 
59
+    # To activate this key, place the following in named.conf, and
60
+    # in a separate keyfile on the system or systems from which nsupdate
61
+    # will be run:
62
+	key "ddns-key.memory-leak.dre" {
63
+		algorithm hmac-sha256;
64
+		secret "hMZ4fVbpllxEJ93AoTa+PjYeUIXx2FHXLgBTz/fWXlA=";
65
+	};	
66
+
67
+Danach integriert man den Schlüssel im System:
68
+	root@delta:/etc/bind# cat named.conf.local
69
+	...
70
+	include "/etc/bind/ddns-key.memory-leak.dre";
71
+
72
+Und zu guter Letzt wird der Schlüssel noch für die jeweilige Zone mit seinen Berechtigungen integriert.
73
+Dazu editiert man die Datei `named.conf.public-zones`:
74
+	root@delta:/etc/bind# head -n 8 named.conf.public-zones
75
+	zone "memory-leak.de" {
76
+		type master;
77
+		file "/etc/bind/dynamic-zones/db.memory-leak.de";
78
+		// dynamic-zones necessary, because binds named needs to be allowed to write journal files to this directory
79
+		// journal files must be created in the directory of the original zone file. BIND BUG?
80
+		update-policy { grant ddns-key.memory-leak.de name murnau.memory-leak.de ANY; };
81
+	};
53 82
 
54 83
 
55 84
 ## Nutzung