dns.conf 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #
  2. # DNS service checks (Salt maanged)
  3. #
  4. ################################################################################
  5. # Internal DNS services #
  6. ################################################################################
  7. # Check DNS Anycast address
  8. object Host "dns.srv.in.ffho.net" {
  9. import "generic-dummy-host"
  10. display_name = "dns.srv.in.ffho.net"
  11. address = "10.132.251.53"
  12. address6 = "2a03:2260:2342:f251::53"
  13. vars.roles = [
  14. "dns",
  15. ]
  16. }
  17. # Check DNS anycast nodes
  18. apply Service "dns4" {
  19. import "generic-service"
  20. check_command = "dns"
  21. vars.dns_lookup = "dns.srv.in.ffho.net"
  22. vars.dns_expected_answer = "10.132.251.53"
  23. vars.dns_server = host.address
  24. assign where host.address && "dns-auth" in host.vars.roles
  25. }
  26. apply Service "dns6" {
  27. import "generic-service"
  28. check_command = "dns"
  29. vars.dns_lookup = "dns.srv.in.ffho.net"
  30. vars.dns_expected_answer = "10.132.251.53"
  31. vars.dns_server = host.address6
  32. assign where host.address6 && "dns-auth" in host.vars.roles
  33. }
  34. # Check if DNS nodes are in sync with auth server
  35. apply Service "dns_sync" {
  36. import "generic-service"
  37. check_command = "dns_sync"
  38. vars.reference_ns = "80.70.181.58"
  39. vars.replica_ns = host.address
  40. vars.zones = [
  41. "ffho.net",
  42. "132.10.in-addr.arpa",
  43. "30.172.in-addr.arpa",
  44. ]
  45. assign where host.address && "dns-auth" in host.vars.roles
  46. ignore where "dns-server-master" in host.vars.roles
  47. }
  48. ################################################################################
  49. # External DNS services #
  50. ################################################################################
  51. apply Service "dns_sync_dns01.srv.rfc2324.org" {
  52. import "generic-service"
  53. check_command = "dns_sync"
  54. vars.reference_ns = "80.70.181.58"
  55. vars.replica_ns = "31.172.8.66"
  56. vars.zones = [
  57. "ffho.net",
  58. "hochstift.freifunk.net",
  59. "paderborn.freifunk.net",
  60. ]
  61. assign where "dns-server-master" in host.vars.roles
  62. }
  63. apply Service "dns_sync_ns.youngage.eu" {
  64. import "generic-service"
  65. check_command = "dns_sync"
  66. vars.reference_ns = "80.70.181.58"
  67. vars.replica_ns = "5.9.142.19"
  68. vars.zones = [
  69. "ffho.net",
  70. "hochstift.freifunk.net",
  71. "paderborn.freifunk.net",
  72. ]
  73. assign where "dns-server-master" in host.vars.roles
  74. }