Re: Needless DNS queries

2022-06-14 Thread Dieter Rohlfing
Thanks to everybody, who replied. After some more reading and tinkering I've made the following observations: The response code NXDOMAIN means: domain name did not resolve. In this case the search option becomes important. Whenever a domain name does not resolve, the client's resolver (at least i

Re: Needless DNS queries

2022-06-07 Thread Lee
On 6/8/22, Greg Wooledge wrote: > On Wed, Jun 08, 2022 at 12:56:52AM +, Lee wrote: >> host and dig are non-standard. or use non-standard name lookups? >> library?? >> In any case, try your example with ping or ssh - the search list will >> be applied after the initial NXDOMAIN > > On Debian,

Re: Needless DNS queries

2022-06-07 Thread Greg Wooledge
On Wed, Jun 08, 2022 at 12:56:52AM +, Lee wrote: > host and dig are non-standard. or use non-standard name lookups? library?? > In any case, try your example with ping or ssh - the search list will > be applied after the initial NXDOMAIN On Debian, the canonical tool for performing generic ho

Re: Needless DNS queries

2022-06-07 Thread Lee
On 6/7/22, Tim Woodall wrote: > On Tue, 7 Jun 2022, Greg Wooledge wrote: > >> On Tue, Jun 07, 2022 at 11:22:34AM -0400, Dan Ritter wrote: >>> >>> search Search list for host-name lookup. By default, the >>> search >>> [...] >>> This may be changed by listing the desired domain

Re: Needless DNS queries

2022-06-07 Thread Tim Woodall
On Tue, 7 Jun 2022, Greg Wooledge wrote: On Tue, Jun 07, 2022 at 11:22:34AM -0400, Dan Ritter wrote: search Search list for host-name lookup. By default, the search [...] This may be changed by listing the desired domain search path following the search keyword with spaces o

Re: Needless DNS queries

2022-06-07 Thread Lee
On 6/7/22, Darac Marjal wrote: > > On 07/06/2022 17:53, Greg Wooledge wrote: >> >> To the best of my knowledge, there isn't any setting to *prevent* the >> appending of search domains to a name, no matter how many dots you put >> in the name. > > I've wondered about that in the past. Is this maybe

Re: Needless DNS queries

2022-06-07 Thread Darac Marjal
On 07/06/2022 17:53, Greg Wooledge wrote: On Tue, Jun 07, 2022 at 11:22:34AM -0400, Dan Ritter wrote: search Search list for host-name lookup. By default, the search [...] This may be changed by listing the desired domain search path following the search keyword with spaces

Re: Needless DNS queries

2022-06-07 Thread Greg Wooledge
On Tue, Jun 07, 2022 at 11:22:34AM -0400, Dan Ritter wrote: > > searchSearch list for host-name lookup. By default, the > search > [...] > This may be changed by listing the desired domain search > path following the search keyword with spaces or tabs separating the > name

Re: Needless DNS queries

2022-06-07 Thread Tim Woodall
On Tue, 7 Jun 2022, Dan Ritter wrote: Dieter Rohlfing wrote: Hello everybody, When a client queries for a domain and the answer is NXDOMAIN, there is immediately a second query with the original domain name, but suffixed with the domain name of my home network. Example: 1. query: www.example

Re: Needless DNS queries

2022-06-07 Thread Dan Ritter
Dieter Rohlfing wrote: > Hello everybody, > > When a client queries for a domain and the answer is NXDOMAIN, there is > immediately a second query with the original domain name, but suffixed > with the domain name of my home network. > > Example: > > 1. query: www.example.com (result NXDOMAIN)

Re: Needless DNS queries

2022-06-07 Thread David Wright
On Tue 07 Jun 2022 at 17:01:21 (+0200), Dieter Rohlfing wrote: > When a client queries for a domain and the answer is NXDOMAIN, there is > immediately a second query with the original domain name, but suffixed > with the domain name of my home network. > > Example: > > 1. query: www.example.com (