User Tools

Site Tools


doc:appunti:linux:sa:dhcp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:dhcp [2011/06/30 09:51] – [Dynamic DNS con DHCP] niccolodoc:appunti:linux:sa:dhcp [2012/09/15 15:28] (current) – [Configurazione del server DNS] niccolo
Line 8: Line 8:
 ddns-updates         on; ddns-updates         on;
 ddns-update-style    interim; ddns-update-style    interim;
-ddns-domainname      "rigacci.net";+ddns-domainname      "my.rigacci.org";
 update-static-leases on; update-static-leases on;
 update-optimization  false; update-optimization  false;
Line 23: Line 23:
         secret "TXlWZXJ5U2VjcmV0Cg==";         secret "TXlWZXJ5U2VjcmV0Cg==";
     };     };
-    zone rigacci.net. {+    zone my.rigacci.org. {
         primary 192.168.2.2;         primary 192.168.2.2;
         key rndc-key;         key rndc-key;
Line 46: Line 46:
  
 **NOTA**: Togliere dai file di zona eventuali record inseriti manualmente che devono invece essere gestiti dinamicamente. **NOTA**: Togliere dai file di zona eventuali record inseriti manualmente che devono invece essere gestiti dinamicamente.
 +
 ===== Configurazione del server DNS ===== ===== Configurazione del server DNS =====
  
Line 56: Line 57:
 }; };
  
-zone "rigacci.net" {+zone "my.rigacci.org" {
     type master;     type master;
-    file "rigacci.net.private";+    file "my.rigacci.org";
     allow-transfer { 192.168.3.1; };     allow-transfer { 192.168.3.1; };
     allow-update { key "rndc-key"; };     allow-update { key "rndc-key"; };
 +    max-journal-size 150k;
 }; };
 </file> </file>
Line 71: Line 73:
  
 <code> <code>
-rndc freeze rigacci.net IN private+rndc freeze my.rigacci.org IN private
 </code> </code>
  
Line 77: Line 79:
  
 <code> <code>
-rndc unfreeze rigacci.net IN private+rndc unfreeze my.rigacci.org IN private 
 +</code> 
 + 
 +===== Test modifica dinamica ===== 
 + 
 +Con il comando **''nsupdate''** è possibile inviare una richiesta di aggiornamento: 
 + 
 +<code> 
 +nsupdate 
 +> server 192.168.2.2   
 +> key rndc-key TXlWZXJ5U2VjcmV0Cg== 
 +> zone 3.168.192.in-addr.arpa 
 +> update add 36.3.168.192.in-addr.arpa 600 IN PTR lacie2.my.rigacci.org. 
 +> send
 </code> </code>
doc/appunti/linux/sa/dhcp.1309420269.txt.gz · Last modified: 2011/06/30 09:51 by niccolo