doc:appunti:linux:sa:dhcp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:sa:dhcp [2011/06/24 13:26] – created niccolo | doc:appunti:linux:sa:dhcp [2012/09/15 15:28] – [Configurazione del server DNS] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Dynamic DNS con DHCP ====== | ====== Dynamic DNS con DHCP ====== | ||
- | La presente configurazione funziona su una Debian Squeeze con **isc-dhcp-server**. | + | La presente configurazione funziona su una Debian Squeeze con **isc-dhcp-server |
- | In **''/ | + | In **''/ |
< | < | ||
ddns-updates | ddns-updates | ||
ddns-update-style | ddns-update-style | ||
- | ddns-domainname | + | ddns-domainname |
update-static-leases on; | update-static-leases on; | ||
update-optimization | update-optimization | ||
</ | </ | ||
- | Nel caso specifico si vuole annunciare al DNS anche gli host che hanno un indirizzo IP fisso ('' | + | Nel caso specifico si vuole annunciare al DNS anche gli host che hanno un indirizzo IP fisso ('' |
Nella sezione **'' | Nella sezione **'' | ||
Line 23: | Line 23: | ||
secret " | secret " | ||
}; | }; | ||
- | zone rigacci.net. { | + | zone my.rigacci.org. { |
primary 192.168.2.2; | primary 192.168.2.2; | ||
key rndc-key; | key rndc-key; | ||
Line 44: | Line 44: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | **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 55: | Line 57: | ||
}; | }; | ||
- | zone " | + | 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 " | allow-update { key " | ||
+ | max-journal-size 150k; | ||
}; | }; | ||
</ | </ | ||
Line 70: | Line 73: | ||
< | < | ||
- | rndc freeze rigacci.net IN private | + | rndc freeze |
</ | </ | ||
Line 76: | Line 79: | ||
< | < | ||
- | rndc unfreeze rigacci.net IN private | + | rndc unfreeze |
+ | </ | ||
+ | |||
+ | ===== Test modifica dinamica ===== | ||
+ | |||
+ | Con il comando **'' | ||
+ | |||
+ | < | ||
+ | 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 | ||
</ | </ |
doc/appunti/linux/sa/dhcp.txt · Last modified: 2024/05/28 10:31 by niccolo