Skip to content
Tristan Le Guern edited this page Apr 24, 2019 · 2 revisions

resolvers

The resolvers section can be configured with the YAML tree haproxy_resolvers. This is a feature introduced in Haproxy 1.6.

Example:

haproxy_resolvers:
- name: ns
  nameservers:
  - name: ns1
    ip: 10.0.0.1
    port: 53
  - name: ns2
    ip: 10.0.0.2
    port: 53
  hold:
  - { status: other, period: 30s }
  - { status: refused, period: 30s }
  - { status: nx, period: 30s }
  - { status: timeout, period: 30s }
  - { status: valid, period: 30s }
  timeout_retry: 1s
  resolv_retries: 5

name

String.

nameservers

List of mappings, optional.

  • name ;
  • ip ;
  • port.

hold

List of mappings, optional.

  • status ;
  • period.

resolv_retries

Numerical, optional.

timeout_retry

Time, optional.

Clone this wiki locally