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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user