summaryrefslogtreecommitdiff
path: root/usr.bin/dig
AgeCommit message (Collapse)Author
2020-02-21Read CLOCK_MONOTONIC when we need timestamps to compare and useFlorian Obser
time(3) for the wall clock. prodding & OK jung
2020-02-20We do not generate DNS records from text representations.Florian Obser
OK millert
2020-02-20Remove support for reading tsig keys from dnssec key pair.Florian Obser
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
2020-02-19simplify signal setup and remove block/unblock/is_running/reloadJoerg Jung
with input from florian ok millert florian
2020-02-19remove unreachable codeJoerg Jung
ok millert florian
2020-02-18Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.Florian Obser
While pulling on that it turns out we can / need git rid of a isc_task -> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and isc_socket -> isc__socket indirection. OK millert
2020-02-18Remove unused task, taskmgr, app, socket and socketmgr methods.Florian Obser
OK millert
2020-02-17isc_stdio_open() wrapper function is only called in lex'erJoerg Jung
so call fopen() directly and drop it ok florian
2020-02-17remove unused codeJoerg Jung
ok florian
2020-02-16Get rid of isc_stdtime_t and use time_t directly.Florian Obser
OK millert
2020-02-16cleanupFlorian Obser
OK millert
2020-02-16clock_gettime cannot fail if called correctly; unravel TIME_NOWFlorian Obser
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
2020-02-16Move isc_time_formathttptimestamp to the only place it is used.Florian Obser
OK millert
2020-02-16unravel isc_time_formattimestampFlorian Obser
OK millert
2020-02-16unravel isc_time_add and isc_time_subtractFlorian Obser
OK millert
2020-02-16unravel isc_time_compareFlorian Obser
OK millert
2020-02-16unravel isc_time_isepochFlorian Obser
OK millert
2020-02-16remove timespec settersFlorian Obser
OK millert
2020-02-16Reduce interval indirection by setting struct members directly andFlorian Obser
using macros from sys/time.h OK millert
2020-02-16The timer type we are using requires interval to be set, removeFlorian Obser
unused interval_zero. OK millert
2020-02-16Replace isc_time_t and interval_t with struct timespec.Florian Obser
Input & OK millert
2020-02-16Now we are only using one timer type (once) and expires is always NULLFlorian Obser
so remove those struct members. OK millert
2020-02-16We only use isc_timertype_once, get rid of all other types.Florian Obser
OK millert
2020-02-16remove unused fileJonathan Gray
2020-02-15remove unused functionFlorian Obser
2020-02-15timer methods are unusedFlorian Obser
2020-02-15test pointers against NULL not 0Jonathan Gray
2020-02-15remove unused lockid var and FDLOCK_ID macroJonathan Gray
2020-02-15get path to resolv.conf from resolv.hFlorian Obser
2020-02-15unifdef VALREGEX_REPORT_REASON, it doesn't provide much clarity.Florian Obser
2020-02-15Get rid of "discards (const) qualifiers" warning in a less convoluted way.Florian Obser
OK schwarze who points out that sufficiently excessive compiler warning settings will still warn for a straight forward (void *) cast.
2020-02-14Fix host(1) when providing a server to query.Florian Obser
host would use the name starting at the 2nd letter as the server argument. Found the hard way by dhill. While here restore previous behaviour of ignoring additional commands after the server but use the server in that case.
2020-02-13threads are gone, replace thread safe isc__strerror() wrapperJoerg Jung
with strerror() and drop it ok millert florian
2020-02-13+trace has the RD bit cleared however it asks the nameserver fromFlorian Obser
/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
2020-02-13expand ISC_FORMAT_PRINTF and get rid of formatcheck.hFlorian Obser
2020-02-13unifdef CHECK; not sure why cppcheck would only trip over this macro,Florian Obser
this .c file uses a bunch of other macros only defined in rdata.c.
2020-02-13remove task and timer tracingFlorian Obser
2020-02-13unifdef ISC_LIST_CHECKINITFlorian Obser
2020-02-13While we do have AF_UNIX support, dig doesn't use it.Florian Obser
2020-02-13Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comonFlorian Obser
header to not have multiple copies.
2020-02-13remove macros which defined extern "C" for C++Jonathan Gray
ok florian@
2020-02-13remove more uneeded include statements and filesJonathan Gray
2020-02-13remove unused macrosJonathan Gray
ok florian@
2020-02-13No need for "high performance" macros.Florian Obser
While here drop name_length() function and replace it with name->length. (Found because clang now complained that we are dropping a const qualifier).
2020-02-13remove unused dig_query_start()Jonathan Gray
2020-02-13use libc inet_aton(3)Jonathan Gray
ok florian@ benno@ jung@
2020-02-13remove unused defineFlorian Obser
2020-02-13we do not have gostFlorian Obser
2020-02-13trust gettimeofday doing the right thingFlorian Obser
2020-02-13remove ISC_HEAP_CHECK knob, it was never turnedFlorian Obser