doc:appunti:linux:sa:dhcp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:dhcp [2024/05/28 10:09] – [Dynamic DNS con DHCP] niccolo | doc:appunti:linux:sa:dhcp [2024/05/28 10:31] (current) – [Modificare manualmente il file di zona] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Dynamic DNS con DHCP ====== | ====== Dynamic DNS con DHCP ====== | ||
| - | La presente configurazione funziona su una Debian | + | La presente configurazione funziona su una Debian |
| - | + | ||
| - | In **''/ | + | |
| - | + | ||
| - | < | + | |
| - | ddns-updates | + | |
| - | ddns-update-style | + | |
| - | ddns-domainname | + | |
| - | update-static-leases on; | + | |
| - | update-optimization | + | |
| - | </ | + | |
| - | + | ||
| - | Nel caso specifico si vuole annunciare al DNS anche gli host che hanno un indirizzo IP fisso ('' | + | |
| - | + | ||
| - | Nella sezione | + | |
| - | + | ||
| - | < | + | |
| - | subnet 192.168.3.0 netmask 255.255.255.0 { | + | |
| - | key lan.rigacci.org { | + | |
| - | algorithm hmac-md5; | + | |
| - | secret " | + | |
| - | }; | + | |
| - | zone my.rigacci.org. { | + | |
| - | primary 192.168.2.2; | + | |
| - | key lan.rigacci.org; | + | |
| - | } | + | |
| - | zone 3.168.192.in-addr.arpa. { | + | |
| - | primary 192.168.2.2; | + | |
| - | key lan.rigacci.org; | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | Infine nella sezione **'' | + | |
| - | + | ||
| - | < | + | |
| - | group { | + | |
| - | host squeeze { | + | |
| - | hardware ethernet 52: | + | |
| - | fixed-address 192.168.3.70; | + | |
| - | ddns-hostname " | + | |
| - | } | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | **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 81: | Line 37: | ||
| ===== Test modifica dinamica ===== | ===== Test modifica dinamica ===== | ||
| - | Con il comando **'' | + | Con il comando **'' |
| < | < | ||
| Line 89: | Line 45: | ||
| > zone lan.rigacci.org | > zone lan.rigacci.org | ||
| > update add test.lan.rigacci.org. 3600 A 192.168.3.123 | > update add test.lan.rigacci.org. 3600 A 192.168.3.123 | ||
| + | > update add 123.3.168.192.in-addr.arpa 600 IN PTR test.lan.rigacci.org. | ||
| > show | > show | ||
| > send | > send | ||
| Line 94: | Line 51: | ||
| In alternativa al comando interattivo **key** è possibile specificare un file sulla riga di comando con l' | In alternativa al comando interattivo **key** è possibile specificare un file sulla riga di comando con l' | ||
| + | |||
| + | Oltre al comando **add** è opportuno utilizzare il comando **del** per rimuovere i nomi non più necessari dalla zona. | ||
| + | |||
| + | ===== Configurazione del server DHCP ===== | ||
| + | |||
| + | In **''/ | ||
| + | |||
| + | < | ||
| + | ddns-updates | ||
| + | ddns-update-style | ||
| + | ddns-domainname | ||
| + | update-static-leases on; | ||
| + | update-optimization | ||
| + | </ | ||
| + | |||
| + | Nel caso specifico si vuole annunciare al DNS anche gli host che hanno un indirizzo IP fisso ('' | ||
| + | |||
| + | Nella sezione **'' | ||
| + | |||
| + | < | ||
| + | subnet 192.168.3.0 netmask 255.255.255.0 { | ||
| + | key lan.rigacci.org { | ||
| + | algorithm hmac-md5; | ||
| + | secret " | ||
| + | }; | ||
| + | zone lan.rigacci.org. { | ||
| + | primary 192.168.2.2; | ||
| + | key lan.rigacci.org; | ||
| + | } | ||
| + | zone 3.168.192.in-addr.arpa. { | ||
| + | primary 192.168.2.2; | ||
| + | key lan.rigacci.org; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Infine nella sezione **'' | ||
| + | |||
| + | < | ||
| + | group { | ||
| + | host squeeze { | ||
| + | hardware ethernet 52: | ||
| + | fixed-address 192.168.3.70; | ||
| + | ddns-hostname " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| ===== Modificare manualmente il file di zona ===== | ===== Modificare manualmente il file di zona ===== | ||
| Line 102: | Line 106: | ||
| < | < | ||
| - | rndc freeze | + | rndc freeze |
| </ | </ | ||
| Line 108: | Line 112: | ||
| < | < | ||
| - | rndc unfreeze | + | rndc unfreeze |
| </ | </ | ||
doc/appunti/linux/sa/dhcp.1716883752.txt.gz · Last modified: by niccolo
