Skip to content
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_CHECK directive #8

Merged
merged 1 commit into from
Mar 22, 2017
Merged

Add DNS_CHECK directive #8

merged 1 commit into from
Mar 22, 2017

Conversation

pandax381
Copy link
Contributor

Keepalived supports DNS health checker since 1.3.0.

keepalived.conf(5)

...
# DNS healthchecker
DNS_CHECK
{  
    # ======== 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
    #   A|NS|CNAME|SOA|MX|TXT|AAAA
    # The default is SOA
    type <STRING>
    # Domain name to use for the DNS query
    # The default is . (dot)
    name <STRING>
}
...

@yuuki
Copy link
Owner

yuuki commented Mar 22, 2017

LGTM! Thanks!

@yuuki yuuki merged commit bc55791 into yuuki:master Mar 22, 2017
@yuuki
Copy link
Owner

yuuki commented Mar 22, 2017

I have released v0.3.5 including this PR. https://github.com/yuuki/gokc/releases/tag/v0.3.5

@pandax381 pandax381 deleted the dns_check branch March 29, 2017 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants