From: Ben Draut Date: Tue, 29 May 2018 21:40:08 +0000 (-0600) Subject: MINOR: dns: Implement `parse-resolv-conf` directive X-Git-Tag: v1.9-dev1~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e609bfa;p=thirdparty%2Fhaproxy.git MINOR: dns: Implement `parse-resolv-conf` directive This introduces a new directive for the `resolvers` section: `parse-resolv-conf`. When present, it will attempt to add any nameservers in `/etc/resolv.conf` to the list of nameservers for the current `resolvers` section. [Mailing list thread][1]. [1]: https://www.mail-archive.com/haproxy@formilux.org/msg29600.html --- diff --git a/doc/configuration.txt b/doc/configuration.txt index e27d66627f..e901d7eeaf 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -12042,6 +12042,11 @@ nameserver : : IP address of the server : port where the DNS service actually runs +parse-resolv-conf + Adds all nameservers found in /etc/resolv.conf to this resolvers nameservers + list. Ordered as if each nameserver in /etc/resolv.conf was individually + placed in the resolvers section in place of this directive. + hold Defines during which the last name resolution should be kept based on last resolution @@ -12085,6 +12090,7 @@ timeout