Discussion:
disable dns completely
tomr
2017-09-26 02:12:26 UTC
Permalink
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
Alan Carroll
2017-09-26 15:59:01 UTC
Permalink
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.
Post by tomr
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
tomr
2017-09-27 01:05:14 UTC
Permalink
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.
Post by Alan Carroll
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.
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
Continue reading on narkive:
Loading...