resolver.spec.pre.in 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. "module_spec": {
  3. "module_name": "Resolver",
  4. "module_description": "Recursive service",
  5. "config_data": [
  6. {
  7. "item_name": "timeout_query",
  8. "item_type": "integer",
  9. "item_optional": False,
  10. "item_default": 2000
  11. },
  12. {
  13. "item_name": "timeout_client",
  14. "item_type": "integer",
  15. "item_optional": False,
  16. "item_default": 4000
  17. },
  18. {
  19. "item_name": "timeout_lookup",
  20. "item_type": "integer",
  21. "item_optional": False,
  22. "item_default": 30000
  23. },
  24. {
  25. "item_name": "retries",
  26. "item_type": "integer",
  27. "item_optional": False,
  28. "item_default": 0
  29. },
  30. {
  31. "item_name": "forward_addresses",
  32. "item_type": "list",
  33. "item_optional": True,
  34. "item_default": [],
  35. "list_item_spec" : {
  36. "item_name": "address",
  37. "item_type": "map",
  38. "item_optional": False,
  39. "item_default": {},
  40. "map_item_spec": [
  41. {
  42. "item_name": "address",
  43. "item_type": "string",
  44. "item_optional": False,
  45. "item_default": "::1"
  46. },
  47. {
  48. "item_name": "port",
  49. "item_type": "integer",
  50. "item_optional": False,
  51. "item_default": 53
  52. }
  53. ]
  54. }
  55. },
  56. {
  57. "item_name": "root_addresses",
  58. "item_type": "list",
  59. "item_optional": True,
  60. "item_default": [],
  61. "list_item_spec" : {
  62. "item_name": "address",
  63. "item_type": "map",
  64. "item_optional": False,
  65. "item_default": {},
  66. "map_item_spec": [
  67. {
  68. "item_name": "address",
  69. "item_type": "string",
  70. "item_optional": False,
  71. "item_default": "::1"
  72. },
  73. {
  74. "item_name": "port",
  75. "item_type": "integer",
  76. "item_optional": False,
  77. "item_default": 53
  78. }
  79. ]
  80. }
  81. },
  82. {
  83. "item_name": "listen_on",
  84. "item_type": "list",
  85. "item_optional": False,
  86. "item_default": [
  87. {
  88. "address": "::1",
  89. "port": 5300
  90. },
  91. {
  92. "address": "127.0.0.1",
  93. "port": 5300
  94. },
  95. ],
  96. "list_item_spec": {
  97. "item_name": "address",
  98. "item_type": "map",
  99. "item_optional": False,
  100. "item_default": {},
  101. "map_item_spec": [
  102. {
  103. "item_name": "address",
  104. "item_type": "string",
  105. "item_optional": False,
  106. "item_default": "::1"
  107. },
  108. {
  109. "item_name": "port",
  110. "item_type": "integer",
  111. "item_optional": False,
  112. "item_default": 5300
  113. }
  114. ]
  115. }
  116. }
  117. ],
  118. "commands": [
  119. {
  120. "command_name": "shutdown",
  121. "command_description": "Shut down recursive DNS server",
  122. "command_args": []
  123. }
  124. ]
  125. }
  126. }