ZONE-REPLICATION
上传用户:raihanchen
上传日期:2022-08-07
资源大小:129k
文件大小:6k
源码类别:

网络

开发平台:

Visual C++

  1. This version of Dual Server support zone replication.
  2. FEATURES
  3. 1. It supports Full Zone Transfer AXFR only, it does not support IXFR (incremental Zone Transfer)
  4. 2. When Dual Server starts, it pulls RRs from other Server (see below).
  5. 3. It do not send Notify message.
  6. 4. It supports DHCP Database replication using special DHCP INFORM message.
  7. 5. One Dual Server can be in Linux while other can be on Windows, it works same way.
  8. REPLICATION SCHEMES
  9. DNS Server loads STATIC-HOST, MX and ALIAS records and serves them. If DHCP Service is also
  10. enabled, thoes records are also served by DNS Server.
  11. How about this server going down. A secondary server is also put in service, which just backs
  12. up data from Primary Server and serves it if primary server is down. Secondary server should
  13. have exact same data and hence it pulls the whole data (all records of a Zone) from Primary
  14. Server and also needs to refresh its data from Primary Server, as data on Primary Server may
  15. change.
  16. Dual Server can be used as Primary Server and also Secondary Server or a Third Party Server
  17. can also be used as Primary or Secondary Server with Dual Server. Dual Server supports following
  18. arrangements:-
  19. 1. Dual Server with only DNS Service as Primary and Secondary Server.
  20. This is the simple most arragement. When primary server is started it reads ALIASes, MX and
  21. STATIC-HOST records from it's ini file. When Secondary Server starts, it does not read these
  22. entries from its' ini file, but pulls the full zone from Primary Server. Secondary Server keeps
  23. checking the Serial from Primary Server, using UDP SOA query, if Serial advances, full zone
  24. is transfered from Primary.
  25. If any changes are made in ini file of Primay Server, it needs to be restarted and thereafter
  26. Secondary Server would pull automatically all RRs from Primary, after refresh time.
  27. Dual Servers do not support NOTIFY.
  28. 2. Dual Server with DNS and DHCP as Primary Server and Dual Server with only DNS as Secondary Server
  29. This is the conventional arrangement.
  30. When Primary Server starts, it reads Hosts, MX, CNAMEs from ini file. When Secondary
  31. server starts/restarts, it pulls Static-Host, MX, Alises and DHCP added RRs from Primary Server.
  32. Secondary Server keeps updating its database through convensional refresh after refresh time.
  33. When any DHCP lease is added or renewed or released at Primary Server, its serial number
  34. advances and secondary DNS Server gets this entry when refresh takes place. Secondary
  35. server keeps checking the serial of primary and if it advances, full zone is refreshed at
  36. secondary server. Similarly changing the Static Entries at Primary Server (followed by
  37. restart) also advances its serial and Secondary refreshes automatically.
  38. 3.  Dual Server with DNS and DHCP as Primary Server and third party DNS server as Secondary Server.
  39. This arragement too works similar to 2. Dual Server supports only full zone tranfer.
  40. Dual Server do not send NOTIFY message and do not send increment zone trasfer.
  41. The secondary server needs to pull the full zone after refresh time.
  42. The advantage is that all DHCP alloted RRs are also transfered with zone transfer to secondary
  43. server.
  44. 4.  Dual Server as secondary server and third party server as primary server.
  45. This arragement too works similar to 2. However third party primary DNS Server might update its
  46. database through DHCP Dynamic update or some other mechanism. Secondary Dual Server would get
  47. updated full zone after refresh time.
  48. 5. Dual Server with only DHCP Service as Primary and Secondary Server.
  49. This arragement provide backup DHCP Server. As both the DHCP Servers are in operation, new 
  50. lease may be alloted by any server on a Client Request. However special DHCP INFORM message
  51. keep the database of both servers in synch.
  52. When any DHCP lease is added or renewed or released by Primary Server or Secondary Server,
  53. the DHCP Entry is automatically duplicated in other server.
  54. Under this arragement, if any DHCP server goes down, other is available and will not allot
  55. already allotted IPs.
  56. 6. Dual Server with DNS and DHCP as Primary Server and Dual Server with DNS and DHCP as Secondary Server
  57. This is the recommended arragement.
  58. When Primary Server starts, it reads MX, Hosts and CNAMEs from ini file. it also pulls DHCP
  59. added RRs from secondary server, if secondary server is running. When Secondary server starts,
  60. it pulls Static-Host, MX, Alises and DHCP added RRs from Primary Server by initial zone tranfer.
  61. Zone transfer happens only once, when Seconadary Servers starts/restarts.
  62. When any DHCP lease is added or renewed or released at Primary Server or Secondary Server,
  63. the DHCP Entry and RR along with Serial is duplicated in other server, through unicast
  64. DHCP inform messases. Serial also advances on both Servers.
  65. This is on the assumption that only changes takes place in Zone RRs, are by DHCP server.
  66. Thus both servers always remains in synch.
  67. If any changes are manually made to ALIASs, STATIC-HOSTS or MX enties in Primary Server,
  68. Primary Server needs to be manually restarted and thereafter secondary server needs to be
  69. manually restarted. Thus these changes gets duplicated in Secondary Server.
  70. This arrangement provides fully synchronized fail safe duplicate DNS and DHCP Server, with
  71. instant replication.
  72. Under this arrangement, Secondary Server does not do peridical refresh, but rely on DHCP
  73. inform messages.
  74. 7. Dual Server with only DNS (or third party DNS) as Primary and Dual Server with DHCP as Seocondary.
  75. This arrangement is not recommeded, as Primary will not be updated of changes to Secondary
  76. due to DHCP changes.
  77. Future Releases of Dual Server may support NOTIFY and Increment Zone Transfers.