You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by tomr <to...@equalit.ie> on 2017/09/26 02:12:26 UTC

disable dns completely

Hi,

To avoid doing a lot of (well, any) DNS lookups, I'm using a
template-generated hosts file, with 'proxy.config.hostdb.host_file.path'
in records.config. I would like to disable DNS completely - is this
possible?

As a workaround, for now, I've got a custom resolv.conf which points
nowhere.

TIA,
tom

Re: disable dns completely

Posted by tomr <to...@equalit.ie>.
Thanks Alan.

I can live with that! I can ensure that there's nothing in remap.config
that isn't in my 'hosts.origins' file - so warnings shouldn't happen
unless there's a genuine issue.

On 09/27/17 01:59, Alan Carroll wrote:
> Looks like it should be possible by setting proxy.config.dns.nameservers
> and proxy.config.dns.resolv.conf to disable nameservers, but you'll get
> a warning message on every DNS attempt when it can't find a nameserver.
> A nice patch would be to be able to turn off DNS at the HostDB level.
> That wouldn't be too much work.
> 
> On Mon, Sep 25, 2017 at 9:12 PM, tomr <tom@equalit.ie
> <ma...@equalit.ie>> wrote:
> 
>     Hi,
> 
>     To avoid doing a lot of (well, any) DNS lookups, I'm using a
>     template-generated hosts file, with 'proxy.config.hostdb.host_file.path'
>     in records.config. I would like to disable DNS completely - is this
>     possible?
> 
>     As a workaround, for now, I've got a custom resolv.conf which points
>     nowhere.
> 
>     TIA,
>     tom
> 
> 

Re: disable dns completely

Posted by Alan Carroll <so...@oath.com>.
Looks like it should be possible by setting proxy.config.dns.nameservers
and proxy.config.dns.resolv.conf to disable nameservers, but you'll get a
warning message on every DNS attempt when it can't find a nameserver. A
nice patch would be to be able to turn off DNS at the HostDB level. That
wouldn't be too much work.

On Mon, Sep 25, 2017 at 9:12 PM, tomr <to...@equalit.ie> wrote:

> Hi,
>
> To avoid doing a lot of (well, any) DNS lookups, I'm using a
> template-generated hosts file, with 'proxy.config.hostdb.host_file.path'
> in records.config. I would like to disable DNS completely - is this
> possible?
>
> As a workaround, for now, I've got a custom resolv.conf which points
> nowhere.
>
> TIA,
> tom
>