New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DNS health checker #429

merged 3 commits into from Sep 21, 2016
Jump to file or symbol
Failed to load files and symbols.
+565 −3
Diff settings


Just for now

Viewing a subset of changes. View all

Add DNS checker

Signed-off-by: Masaya Yamamoto <>
  • Loading branch information...
pandax381 committed Sep 20, 2016
commit 2ad4a7a5e929042cf8063af65adcd66cc7cff5f7
Copy path View file
@@ -659,7 +659,7 @@ A virtual_server can be a declaration of one of
lthreshold <INTEGER> # minimum number of connections to server
# pick one healthchecker
# HTTP and SSL healthcheckers
@@ -811,6 +811,41 @@ A virtual_server can be a declaration of one of
warmup <INT>
# DNS healthchecker
# ======== generic connection options
# Optional IP address to connect to.
# The default is the realserver IP
connect_ip <IP ADDRESS>
# Optional port to connect to
# The default is the realserver port
connect_port <PORT>
# Optional interface to use to
# originate the connection
bindto <IP ADDRESS>
# Optional source port to
# originate the connection from
bind_port <PORT>
# Optional connection timeout in seconds.
# The default is 5 seconds
connect_timeout <INTEGER>
# Optional fwmark to mark all outgoing
# checker packets with
fwmark <INTEGER>
# Number of times to retry a failed check
# The default is 3 times.
retry <INTEGER>
# DNS query type
# The default is SOA
type <STRING>
# Domain name to use for the DNS query
# The default is . (dot)
name <STRING>
# MISC healthchecker, run a program
Copy path View file
@@ -15,8 +15,8 @@ noinst_LIBRARIES = libcheck.a
libcheck_a_SOURCES = \
check_daemon.c check_data.c check_parser.c \
check_api.c check_tcp.c check_http.c check_ssl.c \
check_smtp.c check_misc.c ipwrapper.c ipvswrapper.c \
check_smtp.c check_misc.c check_dns.c ipwrapper.c \
ipvswrapper.c libipvs.c
AM_CPPFLAGS += -I$(srcdir)/../include -I$(srcdir)/../../lib
Copy path View file
@@ -37,6 +37,7 @@
#include "check_tcp.h"
#include "check_http.h"
#include "check_ssl.h"
#include "check_dns.h"
/* Global vars */
static checker_id_t ncheckers = 0;
@@ -310,4 +311,5 @@ install_checkers_keyword(void)
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.