summaryrefslogtreecommitdiff
path: root/usr.bin/dig
AgeCommit message (Collapse)Author
2021-06-12space between rfc and number;Jason McIntyre
2021-04-02Implement ZONEMD (RFC8976), based on DS (ds_43.c)Florian Obser
OK sthen
2021-03-12spellingJonathan Gray
2020-12-21Rewrite parse_netprefix to no longer use isc_sockaddr_fromin{,6}.Florian Obser
Since this was the last user of those functions we can delete them. OK otto
2020-12-20Fix EDNS Client Subnet option (+subnet=)Florian Obser
This got broken when we introduced ecs_plen so that we can use natural socket types.
2020-12-20Fix IPv6 link-local address handling for nameservers to talk to asFlorian Obser
well as address to bind to. Reported by Jordan Geoghegan (jordan AT geoghegan.ca), thanks! Debugged by & initial fix by otto Input & OK otto
2020-12-20Fix copy-pasto when selecting the addresses read from resolv.conf byOtto Moerbeek
address family. ok florian@
2020-11-28Use IN_MULTICAST correctly, so it checks the IP address rather than theJonathan Matthew
pointer to it. ok florian@
2020-11-01Implement Extended DNS Error (RFC 8914).Florian Obser
OK otto, sthen
2020-10-19Do not "fall through" to the last "else" when we parsed the character.Florian Obser
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
2020-09-15We have sockaddr_storage these days, get rid of isc_sockaddr_t.Florian Obser
OK beck, "beautiful" deraadt
2020-09-15The various sockaddr structures have length fields these days.Florian Obser
OK beck
2020-09-15we no longer need isc_netaddr_tFlorian Obser
OK beck, deraadt (who also OK'ed the previous two diffs)
2020-09-15remove 3 unused protos; ok florianTheo de Raadt
2020-09-15rewrite generating of IPv6 reverse names, lets us get rid of byaddr.Florian Obser
OK beck
2020-09-15move islinklocal, ismulticast, issitelocal from netaddr to sockaddrFlorian Obser
OK beck
2020-09-15Fix botched conversion. This was not converted from parse_uint() whichFlorian Obser
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.
2020-09-14Mechanically replace isc_boolean_t with int.Florian Obser
OK deraadt
2020-09-14Bunch of dead stores and otherwise unused stuff lets us get rid ofFlorian Obser
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
2020-09-14Rewrite isc_time_microdiff() as uelapsed() and put it directlyFlorian Obser
into dig sources, lets us get rid of unix/time.{c,h} OK deraadt
2020-09-13Get rid of isc_parse_uint32() and replace it with strtonum.Florian Obser
While here use the standard strtonum error messages. input & OK beck, OK kn
2020-09-13remove unused lex statesFlorian Obser
2020-09-13remove unused LEX_OPTsFlorian Obser
2020-09-13No need to refcount the parser, we never hold more than one reference.Florian Obser
2020-09-12Remove unused callback mechanism / indirection.Florian Obser
OK deraadt, millert
2020-05-10fix socket_log() calls, EVENT expands to three comma separatedOtto Moerbeek
values; spotted by gcc; ok florian@
2020-05-08Make sure cmsgbufs are properly aligned by using the idiom from theOtto Moerbeek
CMSG_DATA man page. Avoids SIGBUS on landisk; ok kettenis@ jca@
2020-04-28Rather than attempting to lookup the keyword "set" as a hostname,Theo de Raadt
issue a usage message. This matches both historical behaviour, and the operation upon other keywords. ok florian
2020-04-02Replace a bunch of hand rolled date / time math with gmtime(3).Florian Obser
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
2020-03-27unused constantsFlorian Obser
2020-02-26no need to go through RETERR when we return a constantFlorian Obser
2020-02-26In preparation of compiling lib/dns/rdata/ files individually we needFlorian Obser
global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
2020-02-26In preparation of compiling lib/dns/rdata/ files individually we needFlorian Obser
global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
2020-02-26Always printing unknown types as TYPE%u and not sometimes as %uFlorian Obser
considerably simplifies dns_rdatatype_attributes() since we then only care about reserved types. tweaks jsg
2020-02-26Rewrite dns_rdatatype_fromtext to use a binary search over a staticFlorian Obser
array.
2020-02-25use timingsafe_bcmp and get rid of now unused safe.cFlorian Obser
2020-02-25use freezero() rather that explicit_bzero() when free() is immediatelyTheo de Raadt
after. pointed out by jsing
2020-02-25traditional nslookup would not fatal if the server name was undiscoverable.Theo de Raadt
change lower level code to return an error, and bump the fatal for host(1) upwards, then tweak nslookup to work nicely
2020-02-25malloc(a * b) -> reallocarray(NULL, a, b)Theo de Raadt
ok jsing jca florian
2020-02-25unused fileFlorian Obser
2020-02-25declare isc_appctx_t once where it is usedJonathan Gray
Should fix typedef redefinition build error on gcc3 reported by aoyama@. ok florian@
2020-02-25Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.Florian Obser
OK jung
2020-02-25reduce multiple newlinesJonathan Gray
2020-02-25remove some unused typedefsJonathan Gray
2020-02-25remove some unused definesJonathan Gray
2020-02-24Stop generating rdatastruct.h and put the dns_rdata_* structs forFlorian Obser
cname, ns, soa, and tsig directly into rdata.h
2020-02-24Delete a few more fromstruct_*, tostruct_* and freestruct_* functionsFlorian Obser
missed in previous. Also delete now unused utility functions.
2020-02-24We only need to create cname, ns, soa and tsig structs.Florian Obser
OK jsg
2020-02-24We only need to fill a wire format buffer from soa and tsig structs.Florian Obser
OK jsg
2020-02-24We only need to free cname, ns, soa and tsig structs.Florian Obser
OK jsg