HAProxy Enterprise Documentation 2.1r1

show resolvers

Display statistics for each resolvers section in your configuration.

Description

A resolvers section lists one or more DNS nameservers, to which HAProxy Enterprise sends DNS queries. The show resolvers command lists the following information for each resolvers section that you've defined in your load balancer configuration:

Field

Displays the number of

sent

DNS requests sent to this group of nameservers

snd_error

Times there was an error sending the DNS query

valid

Valid DNS responses received from this group of nameservers

update

DNS responses used to update a server's IP address

cname

CNAME responses

cname_error

CNAME errors returned from this group of nameservers

any_err

Empty responses (i.e., the server does not support the ANY type)

nx

Non-existent domain responses received from this group of nameservers

timeout

Times this group of nameservers did not answer in time

refused

Requests refused by this group of nameservers

other

Any other DNS errors

invalid

Invalid DNS responses (from a protocol point of view)

too_big

Responses that were too big to process

truncated

Responses that were truncated

outdated

Responses that arrived too late (after another nameserver)

Without any arguments, show resolvers returns information about all resolvers sections. You can filter this to show only a specific section by adding its name.

Examples

Below, we display information about a resolvers section named dnsprod:

$ echo "show resolvers dnsprod" | sudo socat stdio /var/run/hapee-2.1/hapee-lb.sock

Resolvers section dnsprod
  nameserver ns1:
    sent:        16
    snd_error:   0
    valid:       2
    update:      0
    cname:       0
    cname_error: 0
    any_err:     2
    nx:          0
    timeout:     0
    refused:     12
    other:       0
    invalid:     0
    too_big:     0
    truncated:   0
    outdated:    0

See also


Next up

Lua scripts