summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement ZONEMD (RFC8976), based on DS (ds_43.c)florian2021-04-023-2/+124
| | | | OK sthen
* spellingjsg2021-03-121-3/+3
|
* Rewrite parse_netprefix to no longer use isc_sockaddr_fromin{,6}.florian2020-12-213-92/+20
| | | | | Since this was the last user of those functions we can delete them. OK otto
* Fix EDNS Client Subnet option (+subnet=)florian2020-12-201-1/+3
| | | | | This got broken when we introduced ecs_plen so that we can use natural socket types.
* Fix IPv6 link-local address handling for nameservers to talk to asflorian2020-12-202-33/+40
| | | | | | | well as address to bind to. Reported by Jordan Geoghegan (jordan AT geoghegan.ca), thanks! Debugged by & initial fix by otto Input & OK otto
* Fix copy-pasto when selecting the addresses read from resolv.conf byotto2020-12-201-1/+1
| | | | address family. ok florian@
* Use IN_MULTICAST correctly, so it checks the IP address rather than thejmatthew2020-11-281-2/+2
| | | | | | pointer to it. ok florian@
* Implement Extended DNS Error (RFC 8914).florian2020-11-012-1/+78
| | | | OK otto, sthen
* Do not "fall through" to the last "else" when we parsed the character.florian2020-10-191-1/+5
| | | | | | | rev 1.9 of lex.c broke the parser by deleting an outer "if" block when only the inner was supposed to go. OK tb
* We have sockaddr_storage these days, get rid of isc_sockaddr_t.florian2020-09-1510-148/+165
| | | | OK beck, "beautiful" deraadt
* The various sockaddr structures have length fields these days.florian2020-09-156-20/+17
| | | | OK beck
* we no longer need isc_netaddr_tflorian2020-09-157-226/+32
| | | | OK beck, deraadt (who also OK'ed the previous two diffs)
* remove 3 unused protos; ok florianderaadt2020-09-151-8/+1
|
* rewrite generating of IPv6 reverse names, lets us get rid of byaddr.florian2020-09-154-224/+30
| | | | OK beck
* move islinklocal, ismulticast, issitelocal from netaddr to sockaddrflorian2020-09-153-76/+14
| | | | OK beck
* Fix botched conversion. This was not converted from parse_uint() whichflorian2020-09-151-2/+2
| | | | | 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.
* Mechanically replace isc_boolean_t with int.florian2020-09-14102-1243/+1194
| | | | OK deraadt
* Bunch of dead stores and otherwise unused stuff lets us get rid offlorian2020-09-1424-242/+42
| | | | | | unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
* Rewrite isc_time_microdiff() as uelapsed() and put it directlyflorian2020-09-148-122/+54
| | | | | into dig sources, lets us get rid of unix/time.{c,h} OK deraadt
* Get rid of isc_parse_uint32() and replace it with strtonum.florian2020-09-138-231/+108
| | | | | | While here use the standard strtonum error messages. input & OK beck, OK kn
* remove unused lex statesflorian2020-09-131-55/+1
|
* remove unused LEX_OPTsflorian2020-09-132-103/+5
|
* No need to refcount the parser, we never hold more than one reference.florian2020-09-132-37/+12
|
* Remove unused callback mechanism / indirection.florian2020-09-121-37/+9
| | | | OK deraadt, millert
* fix socket_log() calls, EVENT expands to three comma separatedotto2020-05-101-4/+4
| | | | values; spotted by gcc; ok florian@
* Make sure cmsgbufs are properly aligned by using the idiom from theotto2020-05-081-5/+15
| | | | CMSG_DATA man page. Avoids SIGBUS on landisk; ok kettenis@ jca@
* Rather than attempting to lookup the keyword "set" as a hostname,deraadt2020-04-281-4/+6
| | | | | | issue a usage message. This matches both historical behaviour, and the operation upon other keywords. ok florian
* Replace a bunch of hand rolled date / time math with gmtime(3).florian2020-04-022-87/+24
| | | | | | | | | While here fix dns_time64_from32() to correctly deal with unsigned 32 bit cyclic time that I accidentally broke when I switched "now" from isc_std_time (unsiged 32 bit) to time_t (64 bit). input kettenis, millert, otto, cheloha OK cheloha
* unused constantsflorian2020-03-271-16/+1
|
* no need to go through RETERR when we return a constantflorian2020-02-265-22/+22
|
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-2659-524/+426
| | | | | | global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-2663-228/+178
| | | | | | global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
* Always printing unknown types as TYPE%u and not sometimes as %uflorian2020-02-2679-458/+63
| | | | | | considerably simplifies dns_rdatatype_attributes() since we then only care about reserved types. tweaks jsg
* Rewrite dns_rdatatype_fromtext to use a binary search over a staticflorian2020-02-262-258/+125
| | | | array.
* use timingsafe_bcmp and get rid of now unused safe.cflorian2020-02-257-89/+15
|
* use freezero() rather that explicit_bzero() when free() is immediatelyderaadt2020-02-252-14/+8
| | | | | after. pointed out by jsing
* traditional nslookup would not fatal if the server name was undiscoverable.deraadt2020-02-254-11/+27
| | | | | change lower level code to return an error, and bump the fatal for host(1) upwards, then tweak nslookup to work nicely
* malloc(a * b) -> reallocarray(NULL, a, b)deraadt2020-02-259-44/+24
| | | | ok jsing jca florian
* unused fileflorian2020-02-251-59/+0
|
* declare isc_appctx_t once where it is usedjsg2020-02-252-9/+2
| | | | | Should fix typedef redefinition build error on gcc3 reported by aoyama@. ok florian@
* Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.florian2020-02-252-36/+360
| | | | OK jung
* reduce multiple newlinesjsg2020-02-25121-606/+92
|
* remove some unused typedefsjsg2020-02-253-21/+2
|
* remove some unused definesjsg2020-02-251-15/+0
|
* Stop generating rdatastruct.h and put the dns_rdata_* structs forflorian2020-02-2489-2574/+51
| | | | cname, ns, soa, and tsig directly into rdata.h
* Delete a few more fromstruct_*, tostruct_* and freestruct_* functionsflorian2020-02-246-356/+4
| | | | missed in previous. Also delete now unused utility functions.
* We only need to create cname, ns, soa and tsig structs.florian2020-02-2481-2248/+143
| | | | OK jsg
* We only need to fill a wire format buffer from soa and tsig structs.florian2020-02-2481-1548/+131
| | | | OK jsg
* We only need to free cname, ns, soa and tsig structs.florian2020-02-2481-796/+122
| | | | OK jsg
* We are never required to "render glue first" since we just print whatflorian2020-02-242-39/+2
| | | | we get from the net.