Up to [local] / src / usr.bin / dig
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.38 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:50 2024 UTC (6 weeks, 5 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.37: +3 -4 lines
Diff to previous 1.37 (colored) to selected 1.15 (colored)
correct indentation; no functional change ok tb@
Revision 1.37 / (download) - annotate - [select for diffs], Mon Dec 21 11:41:08 2020 UTC (3 years, 5 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.36: +18 -52 lines
Diff to previous 1.36 (colored) to selected 1.15 (colored)
Rewrite parse_netprefix to no longer use isc_sockaddr_fromin{,6}. Since this was the last user of those functions we can delete them. OK otto
Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 20 12:02:00 2020 UTC (3 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored) to selected 1.15 (colored)
Fix EDNS Client Subnet option (+subnet=) This got broken when we introduced ecs_plen so that we can use natural socket types.
Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 20 11:27:47 2020 UTC (3 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.34: +9 -13 lines
Diff to previous 1.34 (colored) to selected 1.15 (colored)
Fix IPv6 link-local address handling for nameservers to talk to as well as address to bind to. Reported by Jordan Geoghegan (jordan AT geoghegan.ca), thanks! Debugged by & initial fix by otto Input & OK otto
Revision 1.34 / (download) - annotate - [select for diffs], Tue Sep 15 11:47:42 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.33: +19 -19 lines
Diff to previous 1.33 (colored) to selected 1.15 (colored)
We have sockaddr_storage these days, get rid of isc_sockaddr_t. OK beck, "beautiful" deraadt
Revision 1.33 / (download) - annotate - [select for diffs], Tue Sep 15 11:46:19 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) to selected 1.15 (colored)
The various sockaddr structures have length fields these days. OK beck
Revision 1.32 / (download) - annotate - [select for diffs], Tue Sep 15 08:19:29 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.31: +16 -10 lines
Diff to previous 1.31 (colored) to selected 1.15 (colored)
we no longer need isc_netaddr_t OK beck, deraadt (who also OK'ed the previous two diffs)
Revision 1.31 / (download) - annotate - [select for diffs], Tue Sep 15 08:15:17 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.30: +28 -21 lines
Diff to previous 1.30 (colored) to selected 1.15 (colored)
rewrite generating of IPv6 reverse names, lets us get rid of byaddr. OK beck
Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 15 07:45:06 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored) to selected 1.15 (colored)
Fix botched conversion. This was not converted from parse_uint() which took a maxlength of 10 but isc_parse_uint32 which took a base of 10 and unlimited lenght. Use a maxval of 128 for prefix lengths instead.
Revision 1.29 / (download) - annotate - [select for diffs], Mon Sep 14 08:40:43 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.28: +195 -195 lines
Diff to previous 1.28 (colored) to selected 1.15 (colored)
Mechanically replace isc_boolean_t with int. OK deraadt
Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 14 08:39:12 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.27: +5 -9 lines
Diff to previous 1.27 (colored) to selected 1.15 (colored)
Bunch of dead stores and otherwise unused stuff lets us get rid of unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 14 08:37:08 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.26: +17 -1 lines
Diff to previous 1.26 (colored) to selected 1.15 (colored)
Rewrite isc_time_microdiff() as uelapsed() and put it directly into dig sources, lets us get rid of unix/time.{c,h} OK deraadt
Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 13 09:33:39 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.25: +19 -48 lines
Diff to previous 1.25 (colored) to selected 1.15 (colored)
Get rid of isc_parse_uint32() and replace it with strtonum. While here use the standard strtonum error messages. input & OK beck, OK kn
Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 25 18:10:17 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored) to selected 1.15 (colored)
use timingsafe_bcmp and get rid of now unused safe.c
Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 25 17:01:56 2020 UTC (4 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored) to selected 1.15 (colored)
traditional nslookup would not fatal if the server name was undiscoverable. change lower level code to return an error, and bump the fatal for host(1) upwards, then tweak nslookup to work nicely
Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 25 05:00:42 2020 UTC (4 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored) to selected 1.15 (colored)
reduce multiple newlines
Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 24 17:57:54 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored) to selected 1.15 (colored)
Stop generating rdatastruct.h and put the dns_rdata_* structs for cname, ns, soa, and tsig directly into rdata.h
Revision 1.21 / (download) - annotate - [select for diffs], Mon Feb 24 17:45:25 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored) to selected 1.15 (colored)
We only need to create cname, ns, soa and tsig structs. OK jsg
Revision 1.20 / (download) - annotate - [select for diffs], Mon Feb 24 17:44:44 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.15 (colored)
We only need to fill a wire format buffer from soa and tsig structs. OK jsg
Revision 1.19 / (download) - annotate - [select for diffs], Mon Feb 24 17:43:52 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.15 (colored)
We only need to free cname, ns, soa and tsig structs. OK jsg
Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 24 13:49:38 2020 UTC (4 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored) to selected 1.15 (colored)
remove some uneeded includes
Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 24 12:06:13 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.15 (colored)
We are always preserving the order of records. This lets us remove compare_* and casecompare_* functions from RR types. OK jung
Revision 1.16 / (download) - annotate - [select for diffs], Sun Feb 23 19:54:25 2020 UTC (4 years, 3 months ago) by jung
Branch: MAIN
Changes since 1.15: +1 -4 lines
Diff to previous 1.15 (colored)
rmeove more unused functions and code ok florian
Revision 1.15 / (download) - annotate - [selected], Sun Feb 23 08:55:43 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)
We are not passing options to the message renderer. OK millert
Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 21 19:53:39 2020 UTC (4 years, 3 months ago) by jung
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.15 (colored)
set function parameter list to void ok millert florian
Revision 1.13 / (download) - annotate - [select for diffs], Fri Feb 21 07:44:50 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored) to selected 1.15 (colored)
Read CLOCK_MONOTONIC when we need timestamps to compare and use time(3) for the wall clock. prodding & OK jung
Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 20 18:07:59 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.11: +4 -49 lines
Diff to previous 1.11 (colored) to selected 1.15 (colored)
Remove support for reading tsig keys from dnssec key pair. This was accidentally broken some time ago. Arguably this was the least useful way of providing tsig keys to dig. ISC also removed generating tsig keys from dnssec-keygen in 9.13. To read the key from disk using the -k option it has to be provided as as a session key: key "keyname" { algorithm hmac-sha256; secret "[...]"; }; OK millert
Revision 1.11 / (download) - annotate - [select for diffs], Wed Feb 19 20:57:10 2020 UTC (4 years, 3 months ago) by jung
Branch: MAIN
Changes since 1.10: +1 -7 lines
Diff to previous 1.10 (colored) to selected 1.15 (colored)
simplify signal setup and remove block/unblock/is_running/reload with input from florian ok millert florian
Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 16 21:11:02 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored) to selected 1.15 (colored)
clock_gettime cannot fail if called correctly; unravel TIME_NOW indirections. (I'm not convinced that we always want to read CLOCK_REALTIME, in fact we probably want to almost always read CLOCK_MONOTONIC.) OK millert
Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 16 21:06:15 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.8: +5 -3 lines
Diff to previous 1.8 (colored) to selected 1.15 (colored)
Reduce interval indirection by setting struct members directly and using macros from sys/time.h OK millert
Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 16 18:05:08 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored) to selected 1.15 (colored)
Replace isc_time_t and interval_t with struct timespec. Input & OK millert
Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 16 08:06:37 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.6: +2 -4 lines
Diff to previous 1.6 (colored) to selected 1.15 (colored)
Now we are only using one timer type (once) and expires is always NULL so remove those struct members. OK millert
Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 15 10:58:14 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored) to selected 1.15 (colored)
get path to resolv.conf from resolv.h
Revision 1.5 / (download) - annotate - [select for diffs], Thu Feb 13 19:29:47 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.4: +65 -3 lines
Diff to previous 1.4 (colored) to selected 1.15 (colored)
+trace has the RD bit cleared however it asks the nameserver from /etc/resolv.conf for a list of root name servers. Arguably corectly configured recursive nameservers should REFUSE to answer this question to prevent cache snooping. Upstream fixed this after the license change by sending the first query with RD set. We go a different route, built in a list of root name servers and ask them. Otherwise known as a priming query. This way +trace does not depend on any localy configured nameserver in /etc/resolv.conf "I have no other quibbles" deraadt@ input & OK sthen
Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 11 23:26:11 2020 UTC (4 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.3: +1 -6 lines
Diff to previous 1.3 (colored) to selected 1.15 (colored)
remove uneeded #include lines ok florian@
Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 11 18:47:29 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.2: +3 -11 lines
Diff to previous 1.2 (colored) to selected 1.15 (colored)
Replace SIZE defines with sizeof. While here replace memmove with memcpy, the arguments do not overlap. OK millert, deraadt
Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 11 16:47:42 2020 UTC (4 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.1: +1 -4 lines
Diff to previous 1.1 (colored) to selected 1.15 (colored)
Remove #if 0 that has been there since the initial import in 2003.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Feb 7 09:58:52 2020 UTC (4 years, 4 months ago) by florian
Branch: MAIN
Diff to selected 1.15 (colored)
Move dig(1) and needed DNS libraries into it's own source directory in usr.bin/dig. From the beginning when we started to remove unneeded nameserver code, it was our goal to extract dig functionality from the bind sources, for everyone's benefit as this is easier to reason about. In total we removed about 2/3 or over 300.000 lines of code. We kept the lib/ subdirectory layout but moved the content of bin/ to the top from the old bind source directory. Previous sources and history can be found in the src/usr.sbin/bind Attic. With & OK deraadt Proposed directory layout sounds good to sthen