dns.conf 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #
  2. # dns.srv.in.ffho.net
  3. #
  4. # Anycast DNS server
  5. object Host "dns.srv.in.ffho.net" {
  6. import "generic-dummy-host"
  7. display_name = "dns.srv.in.ffho.net"
  8. address = "10.132.251.53"
  9. address6 = "2a03:2260:2342:f251::53"
  10. vars.roles = [
  11. "dns",
  12. ]
  13. }
  14. object Host "dns01.srv.in.ffho.net" {
  15. import "generic-dummy-host"
  16. display_name = "dns01.srv.in.ffho.net"
  17. address = "10.132.251.54"
  18. address6 = "2a03:2260:2342:f251::54"
  19. vars.roles = [
  20. "dns",
  21. ]
  22. }
  23. object Host "dns02.srv.in.ffho.net" {
  24. import "generic-dummy-host"
  25. display_name = "dns02.srv.in.ffho.net"
  26. address = "10.132.251.55"
  27. address6 = "2a03:2260:2342:f251::55"
  28. vars.roles = [
  29. "dns",
  30. ]
  31. }
  32. object Host "dns03.srv.in.ffho.net" {
  33. import "generic-dummy-host"
  34. display_name = "dns03.srv.in.ffho.net"
  35. address = "10.132.251.56"
  36. address6 = "2a03:2260:2342:f251::56"
  37. vars.roles = [
  38. "dns",
  39. ]
  40. }
  41. # Check NTP servers
  42. apply Service "dns4" {
  43. import "generic-service"
  44. check_command = "dns"
  45. vars.dns_lookup = "dns.srv.in.ffho.net"
  46. vars.dns_expected_answer = "10.132.251.53"
  47. vars.dns_server = host.address
  48. assign where host.address && "dns" in host.vars.roles
  49. }
  50. apply Service "dns6" {
  51. import "generic-service"
  52. check_command = "dns"
  53. vars.dns_lookup = "dns.srv.in.ffho.net"
  54. vars.dns_expected_answer = "10.132.251.53"
  55. vars.dns_server = host.address6
  56. assign where host.address6 && "dns" in host.vars.roles
  57. }