Commit graph

314 commits

Author SHA1 Message Date
Mark Andrews
076135bf52 reorder test to silence cppcheck 2018-02-16 17:13:43 +11:00
Mark Andrews
d7f38d52db use %u instead of %d 2018-02-16 16:15:08 +11:00
Mark Andrews
7c7d812140 signed vs unsigned fixes 2018-02-16 15:13:51 +11:00
Mark Andrews
95cee77d5d 4817. [cleanup] Use DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE.
[RT #45433]
2017-11-27 13:26:27 +11:00
Mark Andrews
03e9a9f3c3 Revert "more DNS_NAME_INITABSOLUTE cases"
This reverts commit ad6f6a1cbf.

DNS_NAME_INITABSOLUTE doesn't exist in BIND 9.10.x's <dns/name.h>
2017-11-14 12:19:00 +11:00
Mark Andrews
ad6f6a1cbf more DNS_NAME_INITABSOLUTE cases
(cherry picked from commit e2f9dcfd86)
2017-11-14 11:54:54 +11:00
Evan Hunt
b0f8a2a853 [v9_10] fix merge error 2017-11-09 09:39:16 -08:00
Mark Andrews
1f88828520 dig wasn't printing BADCOOKIE 2017-11-09 04:47:21 +00:00
Mark Andrews
f0462f4a88 add L for wide
(cherry picked from commit 055d310e54)
2017-10-04 20:45:17 +11:00
Mark Andrews
abb1a8877b 4738. [port] win32: strftime mishandles %Z. [RT #46039]
(cherry picked from commit 744061a03b)
2017-09-26 23:33:34 +10:00
Mark Andrews
f31a98ebbf more str{n}{cat,cpy} corrections rt45981_stage2
(cherry picked from commit cb629cdeda)
2017-09-14 18:40:23 +10:00
Evan Hunt
e0ddfb109e [master] cleanup strcat/strcpy
4722.	[cleanup]	Clean up uses of strcpy() and strcat() in favor of
			strlcpy() and strlcat() for safety. [RT #45981]

(cherry picked from commit 114f95089c)
(cherry picked from commit 7cd594b842)
2017-09-13 00:18:44 -07:00
Evan Hunt
6640e00924 [v9_10] split up main and add callback function pointers to support iOS
4677.	[port]		Split up the main function in dig to better support
			the iOS app version. [RT #45508]
2017-08-10 22:39:18 -07:00
Evan Hunt
733404ab8c [v9_10] silence gcc 7 warnings
4673.	[port]		Silence GCC 7 warnings. [RT #45592]

(cherry picked from commit cdacec1dcb)
(cherry picked from commit 7dbeb5e7f0)
2017-08-09 00:32:44 -07:00
Mark Andrews
a10354263c 4668. [bug] Use localtime_r and gmtime_r for thread safety.
[RT #45664]

(cherry picked from commit 2019cf29e2)
2017-08-03 08:46:56 +10:00
Mark Andrews
0bf136b8c8 4627. [func] Deprecate 'dig +sit', it is replaced by 'dig +cookie'.
[RT #45245]
2017-05-23 10:38:25 +10:00
Mark Andrews
bb9321de7f 4608. [func] DiG now warns about .local queries which are reserved
for Multicast DNS. [RT #44783]

(cherry picked from commit 7ef453bf43)
2017-04-24 12:07:18 +10:00
Tinderbox User
24c84fa6aa update copyright notice / whitespace 2017-04-20 23:46:37 +00:00
Mark Andrews
2848dbf5cd 4574. [bug] Dig leaked memory with multiple +subnet options.
[RT #44683]

(cherry picked from commit af2b20ee3f)
2017-04-20 10:47:51 +10:00
Evan Hunt
7aec46a5ef [v9_10] 4496. [func] dig: add +idnout to control whether labels are
display in punycode or not.  Requires idn support
                        to be enabled at compile time. [RT #43398]

(cherry picked from commit 42470b0b87)
(cherry picked from commit 6552f33198)
2016-10-31 22:54:41 -07:00
Mark Andrews
e0449a0a4a 4450. [port] Provide more nuanced HSM support which better matches
the specific PKCS11 providers capabilities. [RT #42458]

(cherry picked from commit 8ee6f289d8)
2016-08-19 08:25:54 +10:00
Evan Hunt
e06ef9651e [v9_10] silence clang warnings
4422.	[port]		Silence clang warnings in dig.c and dighost.c.
			[RT #42451]
2016-07-21 15:54:17 -07:00
Mark Andrews
e34864bb31 4351. [bug] 'dig +noignore' didn't work. [RT #42273]
(cherry picked from commit 48bf87ba83)
2016-04-29 12:41:43 +10:00
Tinderbox User
392e684f0e update copyright notice / whitespace 2016-01-28 23:46:02 +00:00
Evan Hunt
ceff729ac2 [v9_10] fix dig=+subnet zero-length prefix
4303.	[bug]		"dig +subnet" was unable to send a prefix length of
			zero, as it was incorrectly changed to 32 for v4
			prefixes or 128 for v6 prefixes. In addition to
			fixing this, "dig +subnet=0" has been added as a
			short form for 0.0.0.0/0. The same changes have
			also been made in "mdig". [RT #41553]
2016-01-27 19:04:03 -08:00
Evan Hunt
106d059d92 [v9_10] fix dig +norrcomments
4272.	[bug]		dig: the +norrcomments option didn't work with +multi.
			[RT #41234]
2015-12-04 16:19:35 -08:00
Mark Andrews
dbeb3f06ff 4264. [bug] Check const of strchr/strrchr assignments match
argument's const status. [RT #41150]

(cherry picked from commit 5b1c7ef35b)
2015-11-20 18:39:57 +11:00
Mark Andrews
8cca6950a8 fix opcode usage
(cherry picked from commit 48bbe9c7f2)
2015-09-16 21:18:25 +10:00
Mark Andrews
211debcee4 add '=' to +opcode description 2015-08-12 07:04:34 +10:00
Mark Andrews
15a8195c7a 4159. [cleanup] Alphabetize dig's help output. [RT #39966] 2015-07-08 09:35:28 +10:00
Mark Andrews
2addc50960 4159. [cleanup] Alphabetize dig's help output. [RT #39966] 2015-07-08 09:14:01 +10:00
Mark Andrews
bb7971417a 4157. [protocol] Update experimental SIT code to use the EDNS COOKIE
option code point (10).  This is the minimal change
                        required to use the new code point. [RT #39928]
2015-07-07 15:43:04 +10:00
Evan Hunt
7438bd16de [v9_10] dig option cleanups
4132.	[cleanup]	dig: added +rd as a synonym for +recurse,
			added +class as an unabbreviated alternative
			to +cl. [RT #39686]
2015-06-04 08:55:50 -07:00
Mark Andrews
105720bad6 3993. [func] Dig now supports EDNS negotiation by default.
(dig +[no]ednsnegotiation). [RT #37604]

(cherry picked from commit 0f5144163c)
2015-05-21 11:45:56 +10:00
Mark Andrews
449b5bdc99 3951. [func] Add the ability to set yet-to-be-defined EDNS flags
to dig (+ednsflags=#). [RT #37142]

(cherry picked from commit 3867312e4c)
2015-05-21 11:22:36 +10:00
Mark Andrews
8a089c3007 add +ednsopt to -h output
(cherry picked from commit ccaee7760f)
2015-05-21 11:12:39 +10:00
Mark Andrews
dd696539d3 3812. [func] Dig now supports sending arbitary EDNS options from
the command line (+ednsopt=code[:value]). [RT #35584]

(cherry picked from commit e560fbdf77)
2015-05-21 11:10:51 +10:00
Mark Andrews
68e9ae1885 4119. [func] Allow dig to set the message opcode. [RT #39550]
(cherry picked from commit c7463967db)
2015-05-19 12:53:02 +10:00
Tinderbox User
e4654e78e1 update copyright notice / whitespace 2015-04-15 23:45:50 +00:00
Evan Hunt
094d578993 [v9_10] fix +split and +rrcomments with dig +short
4101.	[bug]		dig: the +split and +rrcomments options didn't
			work with +short. [RT #39291]
2015-04-15 10:01:41 -07:00
Tinderbox User
d58d0e8801 update copyright notice 2014-08-22 23:45:56 +00:00
Mark Andrews
3aa998eeb7 3919. [bug] dig: continue to next line if a address lookup fails
in batch mode. [RT #36755]

(cherry picked from commit adb503242bc427972afb9bf012e8e2af30852b5a)
2014-08-22 15:33:22 +10:00
Mark Andrews
ecbce9696b [rt36611]
3903.   [bug]           Improve the accuracy of DiG's reported round trip
                        time. [RT 36611]

(cherry picked from commit bc5db10d72)
2014-07-31 07:43:57 +10:00
Tinderbox User
d40ea01829 update copyright notice 2014-07-07 23:45:47 +00:00
Mark Andrews
5ee1a66864 3892. [bug] Setting '-t aaaa' in .digrc had unintended side
effects. [RT #36452]
2014-07-08 02:01:05 +10:00
Mark Andrews
4ca22b5fc2 remove redundent nul setting
(cherry picked from commit bd7996b047)
2014-06-17 10:27:16 +10:00
Evan Hunt
44feb080fd [v9_10] null terminate strings for coverity 2014-06-16 15:30:29 -07:00
Mark Andrews
a457a764fb fail if SIT data is too large
(cherry picked from commit b836de821a)
2014-06-12 07:57:51 +10:00
Mark Andrews
6685a05955 3846. [bug] "dig +notcp ixfr=<serial>" should result in a UDP
ixfr query. [RT #35980]

(cherry picked from commit 05816676bb)
2014-05-14 10:00:03 +10:00
Mark Andrews
16134801ce 3750. [experimental] Partially implement EDNS EXPIRE option as described
in draft-andrews-dnsext-expire-00.  Retrivial of
                        remaining time to expiry from slave zones is supported.

                        EXPIRE uses an experimental option code (65002) and
                        is subject to change. [RT #35416]
2014-02-20 14:56:20 +11:00