From 9a34951579766e5ef1e3e96816699e20d4762608 Mon Sep 17 00:00:00 2001 From: Bart Vollebregt <3983932+bartvollebregt@users.noreply.github.com> Date: Fri, 6 Nov 2020 11:30:01 +0100 Subject: [PATCH] Add line to Trafficservers records.config to resolve /etc/hosts file --- templates/etc/trafficserver/records.config.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/etc/trafficserver/records.config.mustache b/templates/etc/trafficserver/records.config.mustache index e5e49113e..103cc7019 100644 --- a/templates/etc/trafficserver/records.config.mustache +++ b/templates/etc/trafficserver/records.config.mustache @@ -208,6 +208,9 @@ CONFIG proxy.config.hostdb.fail.timeout INT {{dns_resolver.negative_ttl}} # Use more standard round-robin for DNS results (rather than sticky). CONFIG proxy.config.hostdb.strict_round_robin INT 1 +# Resolve hosts from /etc/hosts file +CONFIG proxy.config.hostdb.host_file.path STRING /etc/hosts + # Enable so_keepalive on the incoming and outgoing sockets to better detect # keepalive hangups. CONFIG proxy.config.net.sock_option_flag_in INT 7