You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Eric Chaves <er...@uolet.com> on 2019/02/27 18:52:48 UTC
ATS name resolution ignoring /etc/hosts
Hi Folks,
Does ATS included /etc/hosts when it's performing DNS lookups? I've added
an entry for a custom domain that is not publicly resolved but ATS does not
seem to find the IP address to connect (clients get a 502 error and logs
ERR_CONNECT_FAIL/502 606 CONNECT my-domain:4433/ - NONE/- text/htm).
Am I missing something (again =P )?
Regards,
Re: ATS name resolution ignoring /etc/hosts
Posted by Alan Carroll <so...@verizonmedia.com>.
By default it does not look at /etc/hosts. You should look at this
configuation -
https://docs.trafficserver.apache.org/en/8.0.x/admin-guide/files/records.config.en.html?highlight=host_file#proxy-config-hostdb-host-file-path
On Wed, Feb 27, 2019 at 12:53 PM Eric Chaves <er...@uolet.com> wrote:
> Hi Folks,
>
> Does ATS included /etc/hosts when it's performing DNS lookups? I've added
> an entry for a custom domain that is not publicly resolved but ATS does not
> seem to find the IP address to connect (clients get a 502 error and logs
> ERR_CONNECT_FAIL/502 606 CONNECT my-domain:4433/ - NONE/- text/htm).
>
> Am I missing something (again =P )?
>
> Regards,
>
Re: ATS name resolution ignoring /etc/hosts
Posted by "Dunkin, Nick" <Ni...@ccur.com>.
Hi Eric,
We’ve experienced this issue too. I don’t know if we’ve both missed something but here we use a workaround of running dnsmasq on the ATS server. We then configure ATS to resolve to localhost, where dnsmasq is running, and that does indeed read /etc/hosts.
HTH
Nick
From: Eric Chaves <er...@uolet.com>
Reply-To: "users@trafficserver.apache.org" <us...@trafficserver.apache.org>
Date: Wednesday, February 27, 2019 at 1:53 PM
To: "users@trafficserver.apache.org" <us...@trafficserver.apache.org>
Subject: ATS name resolution ignoring /etc/hosts
Hi Folks,
Does ATS included /etc/hosts when it's performing DNS lookups? I've added an entry for a custom domain that is not publicly resolved but ATS does not seem to find the IP address to connect (clients get a 502 error and logs ERR_CONNECT_FAIL/502 606 CONNECT my-domain:4433/ - NONE/- text/htm).
Am I missing something (again =P )?
Regards,