Автор Тема: Може ли bind да се "насили" да си актуализира кеша  (Прочетена 1943 пъти)

Regia

  • Напреднали
  • *****
  • Публикации: 293
  • Distribution: Tilix
  • Window Manager: KDE
    • Профил
    • WWW
Здравейте,

има ли някакъв начин secondary bind сървър да се "насили" да си актуализира зоните от главния, че не искам да чакам един ден?
Активен

Hapkoc

  • Напреднали
  • *****
  • Публикации: 2117
    • Профил
http://www.isc.org/sw/bind/arm93/Bv9ARM.ch04.html#notify

http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#boolean_options

http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#zone_transfers

При обновяване на зона, ако опцията notify е настроена на yes (по подразбиране в BIND9) се изпраща NOTIFY до slave сървърите. Те проверяват дали серийния номер е променен, и ако е така инициират трансфер на обновената зона.
Активен

Regia

  • Напреднали
  • *****
  • Публикации: 293
  • Distribution: Tilix
  • Window Manager: KDE
    • Профил
    • WWW
А текущата зона може ли да я взема с
dig @MASTER_SERVER . axfr > root.zone

Защото има съществена разлика между моята зона, и получената от тази команда.
Активен

Hapkoc

  • Напреднали
  • *****
  • Публикации: 2117
    • Профил
Би следвало да можеш.

Вариант е да са иключени нотификациите за промяна на зоната от master-а. Можеш да форсираш трансферирането с:

rndc retransfer <zone>

Цитат

rndc
Usage: rndc [-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 zone [class [view]]
                Suspend updates to a dynamic zone.
  thaw zone [class [view]]
                Enable updates to a frozen dynamic zone and reload it.
  reconfig      Reload configuration file and new zones only.
  stats         Write server statistics to the statistics file.
  querylog      Toggle query logging.
  dumpdb [-all|-cache|-zones] [view ...]
                Dump cache(s) to the dump file (named_dump.db).
  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)
  status        Display status of the server.
  recursing     Dump the queries that are currently recursing (named.recursing)
  *restart      Restart the server.

* == not yet implemented
Version: 9.3.2-P1
Активен

Regia

  • Напреднали
  • *****
  • Публикации: 293
  • Distribution: Tilix
  • Window Manager: KDE
    • Профил
    • WWW
Хмм.

sudo rndc retransfer root.zone
rndc: 'retransfer' failed: partial match

sudo rndc -s 212.97.45.53 retransfer root.zone
rndc: connect failed: connection refused

Това е с името на файла, съдържащ зоната.

А със зона "." става:
Dec  6 16:49:22 bulgra named[2348]: [ID 866145 daemon.error] transfer of './IN' from 212.97.45.53#53: failed while receiving responses: permission denied
Активен

Regia

  • Напреднали
  • *****
  • Публикации: 293
  • Distribution: Tilix
  • Window Manager: KDE
    • Профил
    • WWW
В крайна сметка го взех с dig @MASTER_SERVER . axfr > root.zone

Засега работи.

Благодаря за съветите.
Активен

Подобни теми
Заглавие Започната от Отговора Прегледи Последна публикация
HDD ext3 recover, "Stellar Phoenix Linux" ??
Настройка на хардуер
help40 3 6661 Последна публикация Sep 20, 2012, 21:51
от Acho
"bind" ?!?
Настройка на програми
Fucker 4 1183 Последна публикация Jun 09, 2006, 01:10
от Agent_SMITH
"paskal case" / "camel case"
Общ форум
Apache 3 8134 Последна публикация Aug 11, 2006, 10:01
от ivak
Проблем с "struct cdev" и "struct semaphore"
Общ форум
halturata 22 13621 Последна публикация Aug 14, 2007, 17:31
от tarator
Проблем с "reboot", "halt" и т.н.
Настройка на програми
turboshark 5 7983 Последна публикация Sep 22, 2007, 00:13
от turboshark