mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
403. [bug] host did not use the search list.
This commit is contained in:
parent
5b7f324879
commit
17a28c1f02
2
CHANGES
2
CHANGES
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
403. [bug] "host" did not use the search list.
|
||||||
|
|
||||||
402. [bug] Treat undefined acls as errors, rather than
|
402. [bug] Treat undefined acls as errors, rather than
|
||||||
warning and then later throwing an assertion.
|
warning and then later throwing an assertion.
|
||||||
[RT #252]
|
[RT #252]
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: host.1,v 1.4 2000/08/15 20:11:54 gson Exp $
|
.\" $Id: host.1,v 1.5 2000/08/22 17:02:49 gson Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd Jun 30, 2000
|
.Dd Jun 30, 2000
|
||||||
.Dt HOST 1
|
.Dt HOST 1
|
||||||
@ -114,19 +114,17 @@ The
|
|||||||
.Fl N
|
.Fl N
|
||||||
option sets the number of dots that have to be in
|
option sets the number of dots that have to be in
|
||||||
.Ar name
|
.Ar name
|
||||||
before the root name servers are queried for that name.
|
for it to be considered absolute. The default value is that
|
||||||
The default number of dots is zero.
|
defined using the ndots statement in
|
||||||
Unlike previous versions of
|
.Pa /etc/resolv.conf ,
|
||||||
.Nm host ,
|
or 1 if no ndots statement is present. Names with fewer
|
||||||
the BIND9 implementation does not append domain names from the
|
dots are interpreted as relative names and will be searched
|
||||||
.Dv domain
|
for in the domains listed in the
|
||||||
or
|
|
||||||
.Dv search
|
.Dv search
|
||||||
directives in
|
or
|
||||||
|
.Dv domain
|
||||||
|
directive in
|
||||||
.Pa /etc/resolv.conf .
|
.Pa /etc/resolv.conf .
|
||||||
Therefore
|
|
||||||
.Ar name
|
|
||||||
should be a fully-qualified domain name.
|
|
||||||
.Pp
|
.Pp
|
||||||
The number of UDP retries for a lookup can be changed with the
|
The number of UDP retries for a lookup can be changed with the
|
||||||
.Fl R
|
.Fl R
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: host.c,v 1.49 2000/08/22 16:44:46 gson Exp $ */
|
/* $Id: host.c,v 1.50 2000/08/22 17:02:48 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -50,6 +50,7 @@ extern unsigned int timeout;
|
|||||||
extern isc_mem_t *mctx;
|
extern isc_mem_t *mctx;
|
||||||
extern int ndots;
|
extern int ndots;
|
||||||
extern int tries;
|
extern int tries;
|
||||||
|
extern isc_boolean_t usesearch;
|
||||||
extern int lookup_counter;
|
extern int lookup_counter;
|
||||||
extern char *progname;
|
extern char *progname;
|
||||||
extern isc_task_t *global_task;
|
extern isc_task_t *global_task;
|
||||||
@ -673,6 +674,8 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
lookup->new_search = ISC_TRUE;
|
lookup->new_search = ISC_TRUE;
|
||||||
ISC_LIST_APPEND(lookup_list, lookup, link);
|
ISC_LIST_APPEND(lookup_list, lookup, link);
|
||||||
|
|
||||||
|
usesearch = ISC_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
||||||
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: host.1,v 1.4 2000/08/15 20:11:54 gson Exp $
|
.\" $Id: host.1,v 1.5 2000/08/22 17:02:49 gson Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd Jun 30, 2000
|
.Dd Jun 30, 2000
|
||||||
.Dt HOST 1
|
.Dt HOST 1
|
||||||
@ -114,19 +114,17 @@ The
|
|||||||
.Fl N
|
.Fl N
|
||||||
option sets the number of dots that have to be in
|
option sets the number of dots that have to be in
|
||||||
.Ar name
|
.Ar name
|
||||||
before the root name servers are queried for that name.
|
for it to be considered absolute. The default value is that
|
||||||
The default number of dots is zero.
|
defined using the ndots statement in
|
||||||
Unlike previous versions of
|
.Pa /etc/resolv.conf ,
|
||||||
.Nm host ,
|
or 1 if no ndots statement is present. Names with fewer
|
||||||
the BIND9 implementation does not append domain names from the
|
dots are interpreted as relative names and will be searched
|
||||||
.Dv domain
|
for in the domains listed in the
|
||||||
or
|
|
||||||
.Dv search
|
.Dv search
|
||||||
directives in
|
or
|
||||||
|
.Dv domain
|
||||||
|
directive in
|
||||||
.Pa /etc/resolv.conf .
|
.Pa /etc/resolv.conf .
|
||||||
Therefore
|
|
||||||
.Ar name
|
|
||||||
should be a fully-qualified domain name.
|
|
||||||
.Pp
|
.Pp
|
||||||
The number of UDP retries for a lookup can be changed with the
|
The number of UDP retries for a lookup can be changed with the
|
||||||
.Fl R
|
.Fl R
|
||||||
|
Loading…
x
Reference in New Issue
Block a user