dns.conf 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. # Check NTP servers
  15. apply Service "dns4" {
  16. import "generic-service"
  17. check_command = "dns"
  18. vars.dns_lookup = "dns.srv.in.ffho.net"
  19. vars.dns_expected_answer = "10.132.251.53"
  20. vars.dns_server = host.address
  21. assign where host.address && "dns" in host.vars.roles
  22. }
  23. apply Service "dns6" {
  24. import "generic-service"
  25. check_command = "dns"
  26. vars.dns_lookup = "dns.srv.in.ffho.net"
  27. vars.dns_expected_answer = "10.132.251.53"
  28. vars.dns_server = host.address6
  29. assign where host.address6 && "dns" in host.vars.roles
  30. }