Help)

SB
На сайте с 27.10.2014
Offline
12
633

Парни, нужна помощь. Имеется такая схема:

Master dns, OS CentOS

Slave dns, OS ubuntu.

Схема работает всё хорошо, но мне нужна автоматическая синхронизация зон. Например, изменил записи в зоне на мастере, появилось это на слейве, без перезагрузки демона.

И там и там стоит bind.

Спасибо

pupseg
На сайте с 14.05.2010
Offline
364
#1

то-есть когда посылаете rndc reload - зоны не переезжают туда-сюда ?

переезжают только при рестарте ?

или вы просто не в курсе, что bind через rndc управляется?

Качественная помощь в обслуживании серверов. (/ru/forum/661100) Бесплатных консультаций не даю, не помогаю, не обучаю. Минималка от 100$. Как пропатчить KDE-просьба не спрашивать. Есть форумы (http://linux.org.ru) и полезные сайты (http://www.opennet.ru/).
SB
На сайте с 27.10.2014
Offline
12
#2

Зоны должны синхронизироваться сразу после изменений и без перезапуска демонов

pupseg
На сайте с 14.05.2010
Offline
364
#3
Sergey Betsman:
Зоны должны синхронизироваться сразу после изменений и без перезапуска демонов

rndc ничего не перезапускает.

он дает необходимые инструкции РАБОТАЮЩЕМУ bind'у.

Так в принципе работают все панели управления. Просто выполняют rndc reconfig, rndc reload и т д.

Usage: rndc [-b address] [-c config] [-s server] [-p port]

[-k key-file ] [-y key] [-V] command

command is one of the following:

reload Reload configuration file and zones.
reload zone [class [view]]
Reload a single zone.
refresh zone [class [view]]
Schedule immediate maintenance for a zone.
retransfer zone [class [view]]
Retransfer a single zone without checking serial number.
freeze Suspend updates to all dynamic zones.
freeze zone [class [view]]
Suspend updates to a dynamic zone.
thaw Enable updates to all dynamic zones and reload them.
thaw zone [class [view]]
Enable updates to a frozen dynamic zone and reload it.
sync [-clean] Dump changes to all dynamic zones to disk, and optionally
remove their journal files.
sync [-clean] zone [class [view]]
Dump a single zone's changes to disk, and optionally
remove its journal file.
notify zone [class [view]]
Resend NOTIFY messages for the zone.
reconfig Reload configuration file and new zones only.
sign zone [class [view]]
Update zone keys, and sign as needed.
loadkeys zone [class [view]]
Update keys without signing immediately.
stats Write server statistics to the statistics file.
querylog newstate
Enable / disable query logging.
dumpdb [-all|-cache|-zones] [view ...]
Dump cache(s) to the dump file (named_dump.db).
secroots [view ...]
Write security roots to the secroots file.
stop Save pending updates to master files and stop the server.
stop -p Save pending updates to master files and stop the server
reporting process id.
halt Stop the server without saving pending updates.
halt -p Stop the server without saving pending updates reporting
process id.
trace Increment debugging level by one.
trace level Change the debugging level.
notrace Set debugging level to 0.
flush Flushes all of the server's caches.
flush [view] Flushes the server's cache for a view.
flushname name [view]
Flush the given name from the server's cache(s)
flushtree name [view]
Flush all names under the given name from the server's cache(s)
status Display status of the server.
recursing Dump the queries that are currently recursing (named.recursing)
tsig-list List all currently active TSIG keys, including both statically
configured and TKEY-negotiated keys.
tsig-delete keyname [view]
Delete a TKEY-negotiated TSIG key.
validation newstate [view]
Enable / disable DNSSEC validation.
addzone ["file"] zone [class [view]] { zone-options }
Add zone to given view. Requires new-zone-file option.
delzone ["file"] zone [class [view]]
Removes zone from given view. Requires new-zone-file option.
signing -list zone [class [view]]
List the private records showing the state of DNSSEC
signing in the given zone.
signing -clear <keyid>/<algorithm> zone [class [view]]
Remove the private record that indicating the given key
has finished signing the given zone.
signing -clear all zone [class [view]]
Remove the private records for all keys that have
finished signing the given zone.
signing -nsec3param none zone [class [view]]
Remove NSEC3 chains from zone.
signing -nsec3param hash flags iterations salt zone [class [view]]
Add NSEC3 chain to zone if already signed.
Prime zone with NSEC3 chain if not yet signed.
*restart Restart the server.
SB
На сайте с 27.10.2014
Offline
12
#4

Хорошо, задам вопрос по другому.

Как сделать что бы зоны синхронизировались сразу после изменениея. Вот изменил файл, сохранил и всё. Больше никаких движений

Andreyka
На сайте с 19.02.2005
Offline
822
#5

Настроить мониторинг изменений файлов и автоматический синк по событиям

Не стоит плодить сущности без необходимости
pupseg
На сайте с 14.05.2010
Offline
364
#6

для того что бы bind перечитал новые файлы и конфиги его все равно нужно релоаднуть

Andron_buton
На сайте с 19.07.2007
Offline
270
#7

Может человек хочет какой-нибудь incron

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий