« IT » : différence entre les versions

De PN Wiki
Aller à la navigation Aller à la recherche
Page créée avec « == Named == === Updating a Dynamic zone === ''"If you have to edit the zone files of dynamic zones manually while the DNS server is running, you'll have to freeze the... »
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
== Named ==
= Named =
=== Updating a Dynamic zone ===
== Updating a Dynamic zone ==
''"If you have to edit the zone files of dynamic zones manually while the DNS server is running, you'll have to freeze the zones with '''# rndc freeze <myzone>''' before editing and unfreeze them with '''# rndc thaw <myzone>''' after editing. This is because named(8) has internal state information and external journal files attached to dynamic zones that have to be kept in sync with the zone files<ref>https://forums.freebsd.org/threads/dynamic-dns-with-bind-and-isc-dhcp-server.33849/</ref>"''.
''"If you have to edit the zone files of dynamic zones manually while the DNS server is running, you'll have to freeze the zones with '''# rndc freeze <myzone>''' before editing and unfreeze them with '''# rndc thaw <myzone>''' after editing. This is because named(8) has internal state information and external journal files attached to dynamic zones that have to be kept in sync with the zone files<ref>https://forums.freebsd.org/threads/dynamic-dns-with-bind-and-isc-dhcp-server.33849/</ref>"''.
= Rsync =
To delete files in the target, add the --delete option to your command. For example:
rsync -avh source/ dest/ --delete<br>
NB: -avh is for --archive --verbose --human-readable<ref>https://askubuntu.com/a/665918</ref>.
= References =
{{references}}

Version du 3 décembre 2023 à 23:44

Named

Updating a Dynamic zone

"If you have to edit the zone files of dynamic zones manually while the DNS server is running, you'll have to freeze the zones with # rndc freeze <myzone> before editing and unfreeze them with # rndc thaw <myzone> after editing. This is because named(8) has internal state information and external journal files attached to dynamic zones that have to be kept in sync with the zone files[1]".

Rsync

To delete files in the target, add the --delete option to your command. For example:

rsync -avh source/ dest/ --delete
NB: -avh is for --archive --verbose --human-readable[2].

References