xfrin_messages.mes 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. # Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
  2. #
  3. # Permission to use, copy, modify, and/or distribute this software for any
  4. # purpose with or without fee is hereby granted, provided that the above
  5. # copyright notice and this permission notice appear in all copies.
  6. #
  7. # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. # PERFORMANCE OF THIS SOFTWARE.
  14. # No namespace declaration - these constants go in the global namespace
  15. # of the xfrin messages python module.
  16. % XFRIN_AUTH_LOADZONE sending Auth loadzone for origin=%1, class=%2
  17. There was a successful zone transfer. We send the "loadzone" command for the
  18. zone to b10-auth.
  19. % XFRIN_AXFR_INCONSISTENT_SOA AXFR SOAs are inconsistent for %1: %2 expected, %3 received
  20. The serial fields of the first and last SOAs of AXFR (including AXFR-style
  21. IXFR) are not the same. According to RFC 5936 these two SOAs must be the
  22. "same" (not only for the serial), but it is still not clear what the
  23. receiver should do if this condition does not hold. There was a discussion
  24. about this at the IETF dnsext working group:
  25. http://www.ietf.org/mail-archive/web/dnsext/current/msg07908.html
  26. and the general feeling seems that it would be better to reject the
  27. transfer if a mismatch is detected. On the other hand, also as noted
  28. in that email thread, neither BIND 9 nor NSD performs any comparison
  29. on the SOAs. For now, we only check the serials (ignoring other fields)
  30. and only leave a warning log message when a mismatch is found. If it
  31. turns out to happen with a real world primary server implementation
  32. and that server actually feeds broken data (e.g. mixed versions of
  33. zone), we can consider a stricter action.
  34. % XFRIN_BAD_MASTER_ADDR_FORMAT bad format for master address: %1
  35. The given master address is not a valid IP address.
  36. % XFRIN_BAD_MASTER_PORT_FORMAT bad format for master port: %1
  37. The master port as read from the configuration is not a valid port number.
  38. % XFRIN_BAD_TSIG_KEY_STRING bad TSIG key string: %1
  39. The TSIG key string as read from the configuration does not represent
  40. a valid TSIG key. The key is ignored.
  41. % XFRIN_BAD_ZONE_CLASS Invalid zone class: %1
  42. The zone class as read from the configuration is not a valid DNS class.
  43. % XFRIN_CC_SESSION_ERROR error reading from cc channel: %1
  44. There was a problem reading from the command and control channel. The
  45. most likely cause is that xfrin the msgq daemon is not running.
  46. % XFRIN_COMMAND_ERROR error while executing command '%1': %2
  47. There was an error while the given command was being processed. The
  48. error is given in the log message.
  49. % XFRIN_CONNECT_MASTER error connecting to master at %1: %2
  50. There was an error opening a connection to the master. The error is
  51. shown in the log message.
  52. % XFRIN_GOT_INCREMENTAL_RESP got incremental response for %1
  53. In an attempt of IXFR processing, the beginning SOA of the first difference
  54. (following the initial SOA that specified the final SOA for all the
  55. differences) was found. This means a connection for xfrin tried IXFR
  56. and really got a response for incremental updates.
  57. % XFRIN_GOT_NONINCREMENTAL_RESP got nonincremental response for %1
  58. Non incremental transfer was detected at the "first data" of a transfer,
  59. which is the RR following the initial SOA. Non incremental transfer is
  60. either AXFR or AXFR-style IXFR. In the latter case, it means that
  61. in a response to IXFR query the first data is not SOA or its SOA serial
  62. is not equal to the requested SOA serial.
  63. % XFRIN_IMPORT_DNS error importing python DNS module: %1
  64. There was an error importing the python DNS module pydnspp. The most
  65. likely cause is a PYTHONPATH problem.
  66. % XFRIN_IXFR_TRANSFER_SUCCESS incremental IXFR transfer of zone %1 succeeded (messages: %2, changesets: %3, deletions: %4, additions: %5, bytes: %6, run time: %7 seconds, %8 bytes/second)
  67. The IXFR transfer for the given zone was successful.
  68. The provided information contains the following values:
  69. messages: Number of overhead DNS messages in the transfer.
  70. changesets: Number of difference sequences.
  71. deletions: Number of Resource Records deleted by all the changesets combined,
  72. including the SOA records.
  73. additions: Number of Resource Records added by all the changesets combined,
  74. including the SOA records.
  75. bytes: Full size of the transfer data on the wire.
  76. run time: Time (in seconds) the complete ixfr took.
  77. bytes/second: Transfer speed.
  78. Note that there is no cross-checking of additions and deletions; if the same
  79. RR gets added and deleted in multiple changesets, it is counted each time;
  80. therefore, for each changeset, there should at least be 1 deletion and 1
  81. addition (the updated SOA record).
  82. % XFRIN_IXFR_UPTODATE IXFR requested serial for %1 is %2, master has %3, not updating
  83. The first SOA record in an IXFR response indicates the zone's serial
  84. at the primary server is not newer than the client's. This is
  85. basically unexpected event because normally the client first checks
  86. the SOA serial by an SOA query, but can still happen if the transfer
  87. is manually invoked or (although unlikely) there is a rapid change at
  88. the primary server between the SOA and IXFR queries. The client
  89. implementation confirms the whole response is this single SOA, and
  90. aborts the transfer just like a successful case.
  91. % XFRIN_MSGQ_SEND_ERROR error while contacting %1 and %2
  92. There was a problem sending a message to the xfrout module or the
  93. zone manager. This most likely means that the msgq daemon has quit or
  94. was killed.
  95. % XFRIN_MSGQ_SEND_ERROR_AUTH error while contacting %1
  96. There was a problem sending a message to b10-auth. This most likely
  97. means that the msgq daemon has quit or was killed.
  98. % XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER error while contacting %1
  99. There was a problem sending a message to the zone manager. This most
  100. likely means that the msgq daemon has quit or was killed.
  101. % XFRIN_NOTIFY_UNKNOWN_MASTER got notification to retransfer zone %1 from %2, expected %3
  102. The system received a notify for the given zone, but the address it came
  103. from does not match the master address in the Xfrin configuration. The notify
  104. is ignored. This may indicate that the configuration for the master is wrong,
  105. that a wrong machine is sending notifies, or that fake notifies are being sent.
  106. % XFRIN_RETRANSFER_UNKNOWN_ZONE got notification to retransfer unknown zone %1
  107. There was an internal command to retransfer the given zone, but the
  108. zone is not known to the system. This may indicate that the configuration
  109. for xfrin is incomplete, or there was a typographical error in the
  110. zone name in the configuration.
  111. % XFRIN_STARTED xfrin started
  112. This informational message is output by xfrin when all initialization
  113. has been completed and it is entering its main loop.
  114. % XFRIN_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down
  115. There was a keyboard interrupt signal to stop the xfrin daemon. The
  116. daemon will now shut down.
  117. % XFRIN_TRANSFER_SUCCESS full %1 transfer of zone %2 succeeded (messages: %3, records: %4, bytes: %5, run time: %6 seconds, %7 bytes/second)
  118. The AXFR transfer of the given zone was successful.
  119. The provided information contains the following values:
  120. messages: Number of overhead DNS messages in the transfer.
  121. records: Number of Resource Records in the full transfer, excluding the
  122. final SOA record that marks the end of the AXFR.
  123. bytes: Full size of the transfer data on the wire.
  124. run time: Time (in seconds) the complete axfr took.
  125. bytes/second: Transfer speed.
  126. % XFRIN_TSIG_KEY_NOT_FOUND TSIG key not found in key ring: %1
  127. An attempt to start a transfer with TSIG was made, but the configured TSIG
  128. key name was not found in the TSIG key ring (configuration option
  129. tsig_keys/keys). The transfer is aborted. The key name that could not be
  130. found is shown in the log message. Check the configuration and the
  131. TSIG key ring.
  132. % XFRIN_UNKNOWN_ERROR unknown error: %1
  133. An uncaught exception was raised while running the xfrin daemon. The
  134. exception message is printed in the log message.
  135. % XFRIN_XFR_OTHER_FAILURE %1 transfer of zone %2 failed: %3
  136. The XFR transfer for the given zone has failed due to a problem outside
  137. of the xfrin module. Possible reasons are a broken DNS message or failure
  138. in database connection. The error is shown in the log message.
  139. % XFRIN_XFR_PROCESS_FAILURE %1 transfer of zone %2/%3 failed: %4
  140. An XFR session failed outside the main protocol handling. This
  141. includes an error at the data source level at the initialization
  142. phase, unexpected failure in the network connection setup to the
  143. master server, or even more unexpected failure due to unlikely events
  144. such as memory allocation failure. Details of the error are shown in
  145. the log message. In general, these errors are not really expected
  146. ones, and indicate an installation error or a program bug. The
  147. session handler thread tries to clean up all intermediate resources
  148. even on these errors, but it may be incomplete. So, if this log
  149. message continuously appears, system resource consumption should be
  150. checked, and you may even want to disable the corresponding transfers.
  151. You may also want to file a bug report if this message appears so
  152. often.
  153. % XFRIN_XFR_TRANSFER_FAILURE %1 transfer of zone %2 with %3 failed: %4
  154. The XFR transfer for the given zone has failed due to an internal error.
  155. The error is shown in the log message.
  156. % XFRIN_XFR_TRANSFER_FALLBACK falling back from IXFR to AXFR for %1
  157. The IXFR transfer of the given zone failed. This might happen in many cases,
  158. such that the remote server doesn't support IXFR, we don't have the SOA record
  159. (or the zone at all), we are out of sync, etc. In many of these situations,
  160. AXFR could still work. Therefore we try that one in case it helps.
  161. % XFRIN_XFR_TRANSFER_PROTOCOL_ERROR %1 transfer of zone %2 with %3 failed: %4
  162. The XFR transfer for the given zone has failed due to a protocol
  163. error, such as an unexpected response from the primary server. The
  164. error is shown in the log message. It may be because the primary
  165. server implementation is broken or (although less likely) there was
  166. some attack attempt, but it can also happen due to configuration
  167. mismatch such as the remote server does not have authority for the
  168. zone any more but the local configuration hasn't been updated. So it
  169. is recommended to check the primary server configuration.
  170. % XFRIN_XFR_TRANSFER_STARTED %1 transfer of zone %2 started
  171. A connection to the master server has been made, the serial value in
  172. the SOA record has been checked, and a zone transfer has been started.
  173. % XFRIN_ZONE_CREATED Zone %1 not found in the given data source, newly created
  174. On starting an xfrin session, it is identified that the zone to be
  175. transferred is not found in the data source. This can happen if a
  176. secondary DNS server first tries to perform AXFR from a primary server
  177. without creating the zone image beforehand (e.g. by b10-loadzone). As
  178. of this writing the xfrin process provides backward compatible
  179. behavior to previous versions: creating a new one in the data source
  180. not to surprise existing users too much. This is probably not a good
  181. idea, however, in terms of who should be responsible for managing
  182. zones at a higher level. In future it is more likely that a separate
  183. zone management framework is provided, and the situation where the
  184. given zone isn't found in xfrout will be treated as an error.
  185. % XFRIN_ZONE_MULTIPLE_SOA Zone %1 has %2 SOA RRs
  186. On starting an xfrin session, it is identified that the zone to be
  187. transferred has multiple SOA RRs. Such a zone is broken, but could be
  188. accidentally configured especially in a data source using "non
  189. captive" backend database. The implementation ignores entire SOA RRs
  190. and tries to continue processing as if the zone were empty. This
  191. means subsequent AXFR can succeed and possibly replace the zone with
  192. valid content, but an IXFR attempt will fail.
  193. % XFRIN_ZONE_NO_SOA Zone %1 does not have SOA
  194. On starting an xfrin session, it is identified that the zone to be
  195. transferred does not have an SOA RR in the data source. This is not
  196. necessarily an error; if a secondary DNS server first tries to perform
  197. transfer from a primary server, the zone can be empty, and therefore
  198. doesn't have an SOA. Subsequent AXFR will fill in the zone; if the
  199. attempt is IXFR it will fail in query creation.
  200. % XFRIN_ZONE_SERIAL_AHEAD Serial number (%1) for %2 received from master %3 < ours (%4)
  201. The response to an SOA query prior to xfr indicated that the zone's
  202. SOA serial at the primary server is smaller than that of the xfrin
  203. client. This is not necessarily an error especially if that
  204. particular primary server is another secondary server which hasn't got
  205. the latest version of the zone. But if the primary server is known to
  206. be the real source of the zone, some unexpected inconsistency may have
  207. happened, and you may want to take a closer look. In this case xfrin
  208. doesn't perform subsequent zone transfer.