title dnskeepalive
section 8
project bgscripts-core
volume System Manager's Manual
date April 2020
=====
NAME
  dnskeepalive - daemon that rotates resolvers in resolv.conf
SYNOPSIS
  dnskeepalive [-d {0..10}] [-uV1] [-c <conffile>]
DESCRIPTION
  Use dnskeepalive when the glibc resolver struggles with properly using `options rotate` (which was common in an older version of glibc). dnskeepalive will poll the listed nameservers and put a reactive dns server as the first entry.
OPTIONS
 -d {0..10} Set debug level, with 10 as maximum verbosity.
 -u --usage  Show help message.
 -V --version Show version number.
 -1 --one    
ENVIRONMENT
  DNSK_ENABLED  Must be set to a truthy value, for the loop to run.
  DNSK_ONESHOT  If truthy, then only run once, instead of as a daemon.
  DNSK_RESOLVCONF  The file to modify. Default is /etc/resolv.conf
  DNSK_TESTDOMAIN  The name to query.
  DNSK_DELAY  How many seconds between loops. No defaults.
These variables are also loaded from `/etc/bgscripts/dnskeepalive.conf`.
BUGS
  Not better than having performant dns servers.
  Can mangle the resolv.conf file. Is particularly vulnerable to systemd or other mechanisms that also alter resolv.conf.
AUTHOR
  <bgstack15@gmail.com>
COPYRIGHT
  CC-BY-SA 4.0
SEE ALSO
`resolv.conf(5)`
