summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/bin/dig/dig.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Finish moving of dig(1) to /usr/bin/dig by removing the sources in theflorian2020-02-111-2036/+0
| | | | | old location. dig(1) sources can be found in src/usr.bin/dig. ok deraadt@
* Switch to Makefile based builds.florian2020-01-281-1/+7
| | | | | | | | Delete a bunch of files that were no longer built but still lying around. Since there are no subdirectories below obj any more we need to prefix dns/{log,time,result}.c with dns_ to not conflict with the same names used by lib/isc/. OK sthen
* Support for queries on ports != 53jca2020-01-261-3/+3
| | | | | | | | | | | | | | - dig(1) -p now works, as already supported by dig(1) from ports/net/isc-bind thanks to sthen@ - "set port=..." also works in nslookup(1) - host(1) has no support for alternate destination ports This adds "inet" to the pledge promises of all three programs, a compromise deemed reasonable and suggested by deraadt@; instead of slightly more complicated patches by myself and florian@ to avoid "inet" in the general case. Suggested by deraadt@, ok florian@ sthen@
* unifdef sigchase. It is deprecated and never enabled on openbsd.florian2020-01-251-92/+1
|
* config.h and platform.h are unused nowflorian2020-01-221-3/+3
|
* remove -m from usage();jmc2020-01-211-2/+2
|
* Rip out custom memory allocator.florian2020-01-201-24/+16
| | | | OK otto
* As millert@ points out we can replace isc_string_touint64 withflorian2020-01-201-2/+2
| | | | | strtoull(3) and then get rid of lib/isc/string.c OK millert
* Handle documentation of the remaining, more complicated defaultsschwarze2020-01-101-3/+3
| | | | | | | | | | | of query options: * Add some missing information and improve some wordings. * List the supported opcodes. * Mention that +nosubnet is valid. * Stop documenting the confusing +noednsflags because it does the same as +ednsflags. Using feedback from florian@ and wording help from jmc@; OK jmc@.
* Use normal int types like int32_t instead of isc_int32_t.florian2020-01-091-10/+10
| | | | OK millert
* We use __dead for functions that do not return.florian2020-01-091-4/+4
| | | | OK millert
* unifdef WITH_IDN; prodding deraadt@florian2020-01-091-5/+1
|
* Assorted unifdefs:florian2020-01-091-13/+1
| | | | | | | | | | | | | | | | | | | | #define ISC_PLATFORM_NEEDSYSSELECTH 1 #define ISC_PLATFORM_HAVESTATNSEC 1 #define ISC_PLATFORM_RLIMITTYPE rlim_t #define ISC_PLATFORM_HAVELONGLONG 1 #undef ISC_PLATFORM_BRACEPTHREADONCEINIT #undef ISC_PLATFORM_USEDECLSPEC #define ISC_PLATFORM_HAVESYSUNH 1 #define ISC_PLATFORM_HAVESTRINGSH 1 #define ISC_PLATFORM_WANTAES 1 #define ISC_PLATFORM_USESIT 1 #define LIBISC_EXTERNAL_DATA #define LIBDNS_EXTERNAL_DATA #define LIBISCCFG_EXTERNAL_DATA #define LIBBIND9_EXTERNAL_DATA #define LIBTESTS_EXTERNAL_DATA prodding deraadt@
* unifdef pkcs11:florian2020-01-091-6/+2
| | | | | | | | | | | | | | | | | #undef USE_PKCS11 #undef PKCS11_TOOLS #undef PKCS11CRYPTO #undef HAVE_PKCS11_GOST #undef HAVE_PKCS11_ECDSA #undef HAVE_PKCS11_ED25519 #undef HAVE_PKCS11_ED448 #define PK11_DH_DISABLE #define PK11_DSA_DISABLE #define PK11_FLAVOR #define PK11_MD5_DISABLE #undef PK11_SOFTHSMV2_FLAVOR prodding deraadt@
* unifdef printf and string functions:florian2020-01-091-7/+7
| | | | | | | | | | | | | | #undef ISC_PLATFORM_NEEDVSNPRINTF #undef ISC_PLATFORM_NEEDSPRINTF #undef ISC_PLATFORM_NEEDPRINTF #undef ISC_PLATFORM_NEEDFPRINTF #define ISC_PLATFORM_QUADFORMAT "ll" #undef ISC_PLATFORM_NEEDSTRSEP #undef ISC_PLATFORM_NEEDSTRLCPY #undef ISC_PLATFORM_NEEDSTRLCAT #undef ISC_PLATFORM_NEEDSTRTOUL #undef ISC_PLATFORM_NEEDMEMMOVE #undef ISC_PLATFORM_NEEDSTRCASESTR
* We are not windows. Minus 500 lines.florian2020-01-071-15/+1
| | | | OK millert
* Remove thread support. Minus 4k lines.florian2020-01-071-5/+1
| | | | OK millert
* manual page: drop +sit because it is merely a deprecated alias for +cookieschwarze2020-01-021-15/+14
| | | | | | usage(): drop +defname because it is merely an alias for +search both: correct option spelling +cl -> +class, +time -> +timeout feedback and OK sthen@, OK jmc@
* totally sync the manpage queryopts with usage(); i've adopted the usagejmc2019-12-311-11/+11
| | | | | pattern of "###" for argument names evrywhere it makes sense, but shortened it to "#";
* add a list of valid queryopts to usage, and change "dig -h" to just displayjmc2019-12-301-99/+13
| | | | | | this new usage; update the description of -h accordingly; SYNOPSIS remains unchanged, since the reader has a list of queryopts with explanations a few screens down
* use a standard synopsis/usage() layout, and tidy up the man page a little;jmc2019-12-271-4/+4
| | | | | some macro simplifications from schwarze ok schwarze deraadt kn
* dig not DiGderaadt2019-12-181-3/+3
|
* -h for help can be discovered other waysderaadt2019-12-181-3/+1
|
* Since dscp probing (setsockopt, special cmsg handling, etc) no longer occursderaadt2019-12-171-3/+3
| | | | late, pledge "dns" is enough and "inet" is not required.
* merge in https://github.com/isc-projects/bind9/commit/b8a04d50a361.patchsthen2019-12-171-5/+17
| | | | | (pre MPL), v4/v6-only wasn't working correctly (trying to use an v6-mapped v4 address when set for v6-only)
* update to 9.10.8-P1, last isc-licensed releasesthen2019-12-171-69/+180
|
* pledge +inet until the try_proto() garbage is neuteredderaadt2019-12-161-3/+3
|
* Update to bind-9.10.5-P3, which appears to have been the last ISC version.deraadt2019-12-161-301/+636
| | | | | | | | | We only use this tree to build dig and nslookup. Our previous version predated edns0 support in those tools, and we want that. This is the worst code I've looked at in years, with layers and layers of spaghetti abstraction clearly unfit for reuse, but then reused anyways, and the old ones remain behind. So this is a 8MB diff. florian, sthen, and otto tried this merge before but failed.
* reduce confusion about -p option. parse it, but only permit port 53, andtedu2016-06-051-3/+4
| | | | | | make it an error otherwise instead of a warning that may be overlooked. reported by Peter van Dijk ok deraadt
* exit() after perror() for pledge failure. Perhaps this got introducedderaadt2015-11-111-2/+6
| | | | | as a test idiom, either when pledge was young or during the transition to strings.... dunno
* pledge bind(1), dig(1), and nslookup(1). This modifies the underlyingderaadt2015-10-251-1/+10
| | | | | | | ISC library to use socket(2) with the SOCK_DNS flag. As a result, the port commands are disabled (such practice is rare in the wild these days, and pretty incompatible with the DNS vs regular socket concept in pledge..) ok bluhm phessler reyk, etc
* parse "nameserver [host]:port" syntax in /etc/resolv.confstsp2009-08-161-1/+1
| | | | ok deraadt@
* resolve conflictsjakob2007-12-091-96/+225
|
* resolve conflicts and regen configure scriptjakob2007-01-101-3/+3
|
* fgets(3) returns NULL on error, not 0. No functional change, but it makescloder2006-10-101-3/+3
| | | | | the code easier to read. OK deraadt
* resolve conflictsjakob2006-04-051-34/+6
|
* Do this correctly, and silence a sign comparison warning.cloder2005-04-141-1/+1
|
* Check snprintf for truncation and failure. From Han Boetes (thanks).cloder2005-04-141-2/+2
|
* resolve conflictsjakob2005-03-221-20/+45
|
* resolve conflictsjakob2004-09-281-139/+380
|
* update to BIND v9.2.3. ok todd@jakob2003-11-181-11/+14
|
* string cleaning; "Put it in. If it breaks, tough" Theo.todd2003-06-271-12/+7
| | | | work by me, useful feedback from krw, jakob, tedu, and tholo
* more snprintf and strlcpy/strlcat fixes. from todd@ and tedu@.jakob2003-04-231-2/+2
|
* add option to force IPv4/IPv6jakob2003-01-201-0/+14
|
* ISC BIND version 9.2.2rc1jakob2003-01-201-0/+1405