2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Add +twiddle option for testing.

Fix up host resolution from resolv.conf.
This commit is contained in:
Michael Sawyer
2000-04-29 01:39:32 +00:00
parent 20c266cbc9
commit e01cfa577b
2 changed files with 73 additions and 6 deletions

View File

@@ -15,6 +15,8 @@
* SOFTWARE.
*/
#define TWIDDLE
#include <config.h>
#include <errno.h>
@@ -71,6 +73,9 @@ extern dns_name_t rootorg;
extern char *rootspace[BUFSIZE];
extern isc_buffer_t rootbuf;
extern int sendcount;
#ifdef TWIDDLE
extern isc_boolean_t twiddle;
#endif
isc_boolean_t short_form=ISC_FALSE;
@@ -394,6 +399,10 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
recurse = ISC_TRUE;
} else if (strncmp(argv[0],"+norec",6) == 0) {
recurse = ISC_FALSE;
#ifdef TWIDDLE
} else if (strncmp(argv[0],"+twiddle",6) == 0) {
twiddle = ISC_TRUE;
#endif
} else if (strncmp(argv[0],"-f",2) == 0) {
if (argv[0][2]!=0) {
batchname=&argv[0][2];