2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

3992. [func] DiG can now send queries without questions

(dig +header-only). [RT #37599]
This commit is contained in:
Mark Andrews
2014-10-30 11:42:02 +11:00
parent 00fb0253c9
commit f274cbeaed
6 changed files with 32 additions and 3 deletions

View File

@@ -230,6 +230,7 @@ help(void) {
" +[no]dnssec (Request DNSSEC records)\n"
" +[no]expire (Request time to expire)\n"
" +[no]nsid (Request Name Server ID)\n"
" +[no]header-only (Send query without a question section)\n"
#ifdef ISC_PLATFORM_USESIT
" +[no]sit (Request a Source Identity Token)\n"
#endif
@@ -1017,6 +1018,10 @@ plus_option(char *option, isc_boolean_t is_batchfile,
FULLCHECK("fail");
lookup->servfail_stops = state;
break;
case 'h':
FULLCHECK("header-only");
lookup->header_only = state;
break;
case 'i':
switch (cmd[1]) {
case 'd': /* identify */