Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
f0a54842
Commit
f0a54842
authored
Oct 31, 2014
by
Mark Andrews
Browse files
3994. [func] Dig now supports setting the last unassigned DNS
header flag bit (dig +zflag). [RT #37421]
parent
0c9b9b5e
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
f0a54842
3994. [func] Dig now supports setting the last unassigned DNS
header flag bit (dig +zflag). [RT #37421]
3993. [func] Dig now supports EDNS negotiation by default.
(dig +[no]ednsnegotiation). [RT #37604]
...
...
bin/dig/dig.c
View file @
f0a54842
...
...
@@ -207,6 +207,7 @@ help(void) {
" +[no]aaonly (Set AA flag in query (+[no]aaflag))
\n
"
" +[no]adflag (Set AD flag in query)
\n
"
" +[no]cdflag (Set CD flag in query)
\n
"
" +[no]zflag (Set Z flag in query)
\n
"
" +[no]cl (Control display of class in records)
\n
"
" +[no]cmd (Control display of command line)
\n
"
" +[no]comments (Control display of comment lines)
\n
"
...
...
@@ -1380,6 +1381,10 @@ plus_option(char *option, isc_boolean_t is_batchfile,
lookup
->
tcp_mode_set
=
ISC_TRUE
;
}
break
;
case
'z'
:
/* zflag */
FULLCHECK
(
"zflag"
);
lookup
->
zflag
=
state
;
break
;
default:
invalid_option:
need_value:
...
...
bin/dig/dig.docbook
View file @
f0a54842
...
...
@@ -1024,6 +1024,16 @@
</listitem>
</varlistentry>
<varlistentry>
<term><option>
+[no]zflag
</option></term>
<listitem>
<para>
Set [do not set] the last unassigned DNS header flag in a
DNS query. This flag is off by default.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
...
...
bin/dig/dighost.c
View file @
f0a54842
...
...
@@ -808,6 +808,7 @@ make_empty_lookup(void) {
looknew
->
aaonly
=
ISC_FALSE
;
looknew
->
adflag
=
ISC_FALSE
;
looknew
->
cdflag
=
ISC_FALSE
;
looknew
->
zflag
=
ISC_FALSE
;
looknew
->
ns_search_only
=
ISC_FALSE
;
looknew
->
origin
=
NULL
;
looknew
->
tsigctx
=
NULL
;
...
...
@@ -909,6 +910,7 @@ clone_lookup(dig_lookup_t *lookold, isc_boolean_t servers) {
looknew
->
aaonly
=
lookold
->
aaonly
;
looknew
->
adflag
=
lookold
->
adflag
;
looknew
->
cdflag
=
lookold
->
cdflag
;
looknew
->
zflag
=
lookold
->
zflag
;
looknew
->
ns_search_only
=
lookold
->
ns_search_only
;
looknew
->
tcp_mode
=
lookold
->
tcp_mode
;
looknew
->
tcp_mode_set
=
lookold
->
tcp_mode_set
;
...
...
@@ -2414,6 +2416,11 @@ setup_lookup(dig_lookup_t *lookup) {
lookup
->
sendmsg
->
flags
|=
DNS_MESSAGEFLAG_CD
;
}
if
(
lookup
->
zflag
)
{
debug
(
"Z query"
);
lookup
->
sendmsg
->
flags
|=
0x0040U
;
}
dns_message_addname
(
lookup
->
sendmsg
,
lookup
->
name
,
DNS_SECTION_QUESTION
);
...
...
bin/dig/include/dig/dig.h
View file @
f0a54842
...
...
@@ -114,6 +114,7 @@ struct dig_lookup {
aaonly
,
adflag
,
cdflag
,
zflag
,
trace
,
/*% dig +trace */
trace_root
,
/*% initial query for either +trace or +nssearch */
tcp_mode
,
...
...
doc/arm/notes.xml
View file @
f0a54842
...
...
@@ -146,6 +146,12 @@
weeks, days, hours, minutes, and seconds.
</para>
</listitem>
<listitem>
<para>
<command>
dig +zflag
</command>
can be used to set the last
unassigned DNS header flag bit. This bit in normally zero.
</para>
</listitem>
<listitem>
<para>
<command>
dig +dscp=
<replaceable>
value
</replaceable></command>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment