| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
old location. dig(1) sources can be found in src/usr.bin/dig.
ok deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-N ndots: 0, INT_MAX
The upper limit is a bit silly, everything bigger than a small number
will force domain names to be interpretet as relative.
-R retries INT_MIN, INT_MAX - 1
Specifically documented to accept negative numbers.
-W wait 0, INT_MAX
One could interpret the documentation as meaning that it accepts
negative numbers but that failes later on with an error message from
the timer code..
with deraadt, OK kn, input & OK tedu
|
| | |
|
| |
|
|
|
|
|
|
| |
shreddings from types.h and get rid of offset.h while here by
just using off_t in the one place where it's needed.
However offset.h brought in limits.h and sys/types.h so sprinkle some
includes over the tree to have various _MAX and intX_t defined.
|
| | |
|
| |
|
|
| |
OK sthen
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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@
|
| |
|
|
| |
OK jca, tedu
|
| | |
|
| |
|
|
| |
Not need to check beforehand and enter a race.
|
| |
|
|
|
|
|
|
|
| |
checks from configure. Work started by tedu, I tossed a bunch more.
"go ahead" tedu
This is not comprehensive but returns where diminishing in terms of
saved build time. The next step would probably be to remove configure
entirely.
|
| |
|
|
|
| |
While here cleanup net.h.
OK deraadt
|
| | |
|
| |
|
|
| |
OK millert
|
| |
|
|
| |
ok florian
|
| | |
|
| | |
|
| |
|
|
| |
OK otto
|
| |
|
|
|
| |
strtoull(3) and then get rid of lib/isc/string.c
OK millert
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dig_serverlist.
In one of the first shredding commits lwres unintentionally lost the
ability to track if the user requested IPv4 only or IPv6 only
operations. Parsing of /etc/resolv.conf would add all nameservers,
ignoring their address family.
When dig(1) later populated server_list it would pay attention to
the address family.
If /etc/resolv.conf contains only IPv4 nameservers and it has 3 or
more and the user requests IPv6 only operations dig would fail with
"add_nameserver failed". This happens because lwres_conf already
contains 3 nameservers but server_list is empty so dig tries to add
::1 to lwres_conf.
It feels like this is very convoluted but it restores previous
behavoir the way it was implemented before. Thus sidestepping some
refactoring.
OK millert
|
| |
|
|
|
|
| |
server side support and keyrings. This allows us to get rid of a
red-black-tree implementation.
OK millert
|
| |
|
|
|
|
|
|
|
|
|
| |
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@.
|
| |
|
|
| |
OK millert, deraadt
|
| |
|
|
| |
OK millert
|
| |
|
|
| |
OK millert
|
| |
|
|
|
|
| |
calls to libc's arc4random. Minus about 3k lines.
prodding deraadt@
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
#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@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
#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@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
#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
|
| |
|
|
| |
OK millert
|
| |
|
|
| |
OK millert
|
| |
|
|
| |
OK millert
|
| |
|
|
|
| |
and move the remaining bits to dighost.c. Minus 4k lines.
OK sthen
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This pulls out the config object (lwres_conf_t) from the context
(lwres_context_t), switches to libc functions (lwres_net_ntop vs
inet_ntop etc ) and removes a lwres_ prefix from number types
(lwres_uint8_t vs uint8_t etc).
With that we can nearly empty out lib/lwres and lose about 20k lines in
the process.
OK sthen
|
| |
|
|
| |
OK jmc@
|
| |
|
|
|
|
| |
is as clear, more concise, and reads better. In a few cases, it also
allows shortening text that said the same twice.
Tweak and OK jmc@.
|
| |
|
|
|
|
| |
that toggle anything. Quite to the contrary, all those touched in
this commit are idempotent.
OK florian@ jmc@
|
| |
|
|
|
| |
is on, +dnsnegotiation is off, +timeout is 5s for UDP and 10s for TCP.
OK florian@
|
| | |
|
| |
|
|
|
|
| |
the explanation of what +opt does, improving both conciseness and
clarity, so let's do this in many trivial cases, and improve some
markup in the vicinity while there
|
| |
|
|
|
| |
use .Cm for keywords, .Ar for placeholders, .Xr for resolv.conf,
and use imperative rather than indicative
|
| |
|
|
|
|
| |
Mostly, move the equal sign out of .Cm and .Ar because we consider
it punctuation. Besides, use .Cm rather than .Ar for keywords
like "ixfr" and do not mark up literal integer numbers with .Ar.
|
| |
|
|
|
|
| |
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@
|
| |
|
|
|
| |
pattern of "###" for argument names evrywhere it makes sense, but shortened it
to "#";
|
| |
|
|
| |
and remove some unneccessary text;
|
| |
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
| |
some macro simplifications from schwarze
ok schwarze deraadt kn
|