Commit Graph
291 Commits
Author SHA1 Message Date
Evan Hunt ade69509e6 change "key" to "tsigkey" to silence "short global name" warning
(cherry picked from commit 0cc7aa250e)
(cherry picked from commit 9d99bf0f4b)
2018-04-22 12:59:06 -07:00
Evan Hunt 5a21193fdd update file headers 2018-03-15 11:30:37 -07:00
Ondřej Surý 9f830be501 update file headers to remove copyright years 2018-03-15 09:09:15 +01:00
Mark Andrews a4d8e7526a reorder test to silence cppcheck 2018-02-16 18:36:17 +11:00
Mark Andrews 5c91a79de9 use %u instead of %d 2018-02-16 18:02:21 +11:00
Mark Andrews 2b64fa5994 signed vs unsigned fixes 2018-02-16 17:42:57 +11:00
Mark Andrews abbc4b2c4f 4817. [cleanup] Use DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE.
[RT #45433]
2017-11-27 13:30:58 +11:00
Mark Andrews 444447d610 add L for wide
(cherry picked from commit 055d310e54)
2017-10-04 20:45:26 +11:00
Mark Andrews c86cff0104 4738. [port] win32: strftime mishandles %Z. [RT #46039]
(cherry picked from commit 744061a03b)
2017-09-26 23:33:45 +10:00
Mark Andrews af9aed27c1 more str{n}{cat,cpy} corrections rt45981_stage2
(cherry picked from commit cb629cdeda)
2017-09-14 18:43:48 +10:00
Evan Hunt f07825440f [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)
(cherry picked from commit e0ddfb109e)
2017-09-13 00:20:09 -07:00
Evan Hunt 18ad62b920 [v9_9] 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]

(cherry picked from commit 6640e00924)
2017-08-10 22:50:19 -07:00
Evan Hunt c06d35bb34 [v9_9] silence gcc 7 warnings
4673.	[port]		Silence GCC 7 warnings. [RT #45592]

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

(cherry picked from commit 2019cf29e2)
2017-08-03 08:47:15 +10:00
Tinderbox User a658d80dc7 update copyright notice / whitespace 2017-04-24 23:47:23 +00:00
Mark Andrews 36a2cde01f 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:52 +10:00
Mark Andrews ee77245897 4501. [bug] Fix 'dig -4 -6'/'dig -6 -4' error handling. [RT #43259] 2016-11-02 09:16:48 +11:00
Evan Hunt 61a01f4860 [v9_9] 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)
(cherry picked from commit 7aec46a5ef)
2016-10-31 23:01:38 -07:00
Evan Hunt d8eaff0417 [v9_9] silence clang warnings
4422.	[port]		Silence clang warnings in dig.c and dighost.c.
			[RT #42451]
2016-07-21 15:57:55 -07:00
Tinderbox User 01e6868978 update copyright notice / whitespace 2016-04-29 23:46:47 +00:00
Mark Andrews 8e0abe93b8 4351. [bug] 'dig +noignore' didn't work. [RT #42273] 2016-04-29 12:42:39 +10:00
Evan Hunt 7504e5a982 [v9_9] fix dig +norrcomments
4272.	[bug]		dig: the +norrcomments option didn't work with +multi.
			[RT #41234]
2015-12-04 16:20:29 -08:00
Mark Andrews 31085192d6 4264. [bug] Check const of strchr/strrchr assignments match
argument's const status. [RT #41150]

(cherry picked from commit 5b1c7ef35b)
2015-11-20 18:41:10 +11:00
Mark Andrews 2f01090351 4159. [cleanup] Alphabetize dig's help output. [RT #39966] 2015-07-08 09:56:48 +10:00
Evan Hunt b2d3001654 [v9_9] 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:56:11 -07:00
Tinderbox User 25b8dd84c9 update copyright notice / whitespace 2015-04-15 23:46:11 +00:00
Evan Hunt ef6df1745c [v9_9] fix +split with dig +short
4101.	[bug]		dig: the +split option didn't work with +short.
			[RT #39291]
2015-04-15 10:09:01 -07:00
Tinderbox User 9b86fb9fda update copyright notice 2014-08-22 23:46:15 +00:00
Mark Andrews 2e0bf5cddf 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:35:43 +10:00
Mark Andrews 8d3e18713e [rt36611]
3903.   [bug]           Improve the accuracy of DiG's reported round trip
                        time. [RT 36611]

(cherry picked from commit bc5db10d72)
2014-07-31 07:46:01 +10:00
Tinderbox User 8adb0a202a update copyright notice 2014-07-07 23:46:02 +00:00
Mark Andrews 1df30622d6 3892. [bug] Setting '-t aaaa' in .digrc had unintended side
effects. [RT #36452]
2014-07-08 02:01:44 +10:00
Evan Hunt 1f3ac11cb4 [v9_9] null terminate strings for coverity 2014-06-16 15:31:04 -07:00
Mark Andrews 5339a66996 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:50 +10:00
Tinderbox User 292568fd2e update copyright notice 2014-02-16 23:45:51 +00:00
Francis Dupont f377d7eb33 retries -> split in could not parse 2014-02-16 02:11:48 +01:00
Mark Andrews 3efcb5250f adjust EDNS query returned status warning message
(cherry picked from commit 0b565f6060)
2013-11-14 22:52:24 +11:00
Mark Andrews 9b7218c2d1 3667. [func] dig: add support to keep the TCP socket open between
successive queries (+[no]keepopen).  [RT #34918]

(cherry picked from commit 2048955015)
2013-11-13 10:29:38 +11:00
Evan Hunt 57ca2e3093 [v9_9] typo in dig
(cherry picked from commit 31d95f1095)
2013-06-19 15:21:36 -07:00
Mark Andrews 564b4832b7 3561. [bug] dig: issue a warning if an EDNS query returns FORMERR
or NOTIMP.  Adjust usage message. [RT #33363]
(cherry picked from commit 93aba6dcec)
2013-05-01 14:54:34 +10:00
Tinderbox User a3412676e4 update copyright notice 2013-03-06 23:47:22 +00:00
Mark Andrews badb0596d3 3515. [port] '%T' is not portable in strftime(). [RT #32763]
(cherry picked from commit 550c92405f)
2013-03-06 15:34:28 +11:00
Mark Andrews 2e1185e19e signed/unsigned comparision 2012-11-30 23:36:45 +11:00
Tinderbox User 446411e38c update copyright notice 2012-11-29 23:45:37 +00:00
Evan Hunt df9aeb663d [v9_9] add timezone to dig
3428.	[cleanup]	dig: Add timezone to date output. [RT #2269]
(cherry picked from commit 706219e547)
2012-11-29 09:08:14 -08:00
Evan Hunt 90dbd7c2e0 [v9_9] fix dig +trace output
3427.	[bug]		dig +trace incorrectly displayed name server
			addresses instead of names. [RT #31641]
(cherry picked from commit 2f21adbc6a)
2012-11-28 19:06:16 -08:00
Evan Hunt 28c2bc2026 3237. [bug] dig -6 didn't work with +trace. [RT #26906] 2011-12-07 17:23:28 +00:00
Evan Hunt 59c79d8cc8 shorten an 81-char line in dig -h 2011-11-04 14:19:17 +00:00
Mark Andrews 3fb5bccf59 3205. [func] Upgrade dig's defaults to better reflect modern
nameserver behaviour.  Enable "dig +adflag" and
                        "dig +edns=0" by default.  Enable "+dnssec" when
                        running "dig +trace". [RT #23497]
2011-11-04 10:41:38 +00:00
Mark Andrews 0874abad14 3069. [cleanup] Silence warnings messages from clang static analysis.
[RT #20256]
2011-03-11 06:11:27 +00:00