No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
2 changed files with
9 additions and
2 deletions
-
R/zdns-bulk-query.R
-
man/zdns_query.Rd
|
|
@ -20,6 +20,8 @@ |
|
|
|
#' recommended that you refresh this list periodicaly (perhaps daily). |
|
|
|
#' @param num_retries how many times should `zdns` retry query if timeout or |
|
|
|
#' temporary failure? Defaults to `3`. |
|
|
|
#' @param num_threads number of lightweight go threads. Note that the default `500` is |
|
|
|
#' smaller than the built-in default of `1000`. |
|
|
|
#' @param log if `TRUE` the JSON error log file will be automatically generated and |
|
|
|
#' the location printed to the console. If a length 1 character vector, this |
|
|
|
#' path + file will be used to save the JSON error log. If `FALSE` no error |
|
|
@ -70,7 +72,7 @@ |
|
|
|
#' knitr::kable(xdf) |
|
|
|
#' } |
|
|
|
zdns_query <- function(entities, input_file = NULL, query_type = "A", output_file, |
|
|
|
num_nameservers = 3000L, num_retries = 3, |
|
|
|
num_nameservers = 3000L, num_retries = 3, num_threads = 500, |
|
|
|
log = TRUE, verbose = 3) { |
|
|
|
|
|
|
|
# make sure the output file dir exists |
|
|
@ -130,6 +132,7 @@ zdns_query <- function(entities, input_file = NULL, query_type = "A", output_fil |
|
|
|
"-conf-file", ns_file, |
|
|
|
"-output-file", output_file, |
|
|
|
"-retries", num_retries, |
|
|
|
"-threads", num_threads, |
|
|
|
"-verbosity", verbose |
|
|
|
) |
|
|
|
|
|
|
|
|
|
@ -5,7 +5,8 @@ |
|
|
|
\title{Bulk query using zdns} |
|
|
|
\usage{ |
|
|
|
zdns_query(entities, input_file = NULL, query_type = "A", output_file, |
|
|
|
num_nameservers = 3000L, num_retries = 3, log = TRUE, verbose = 3) |
|
|
|
num_nameservers = 3000L, num_retries = 3, num_threads = 500, |
|
|
|
log = TRUE, verbose = 3) |
|
|
|
} |
|
|
|
\arguments{ |
|
|
|
\item{entities}{a character vector of entities to resolve} |
|
|
@ -29,6 +30,9 @@ recommended that you refresh this list periodicaly (perhaps daily).} |
|
|
|
\item{num_retries}{how many times should \code{zdns} retry query if timeout or |
|
|
|
temporary failure? Defaults to \code{3}.} |
|
|
|
|
|
|
|
\item{num_threads}{number of lightweight go threads. Note that the default \code{500} is |
|
|
|
smaller than the built-in default of \code{1000}.} |
|
|
|
|
|
|
|
\item{log}{if \code{TRUE} the JSON error log file will be automatically generated and |
|
|
|
the location printed to the console. If a length 1 character vector, this |
|
|
|
path + file will be used to save the JSON error log. If \code{FALSE} no error |
|
|
|