Browse Source

changed default thread count in zdns_query

master
boB Rudis 6 years ago
parent
commit
ced5b6c026
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 5
      R/zdns-bulk-query.R
  2. 6
      man/zdns_query.Rd

5
R/zdns-bulk-query.R

@ -20,6 +20,8 @@
#' recommended that you refresh this list periodicaly (perhaps daily). #' recommended that you refresh this list periodicaly (perhaps daily).
#' @param num_retries how many times should `zdns` retry query if timeout or #' @param num_retries how many times should `zdns` retry query if timeout or
#' temporary failure? Defaults to `3`. #' 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 #' @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 #' 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 #' path + file will be used to save the JSON error log. If `FALSE` no error
@ -70,7 +72,7 @@
#' knitr::kable(xdf) #' knitr::kable(xdf)
#' } #' }
zdns_query <- function(entities, input_file = NULL, query_type = "A", output_file, 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) { log = TRUE, verbose = 3) {
# make sure the output file dir exists # 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, "-conf-file", ns_file,
"-output-file", output_file, "-output-file", output_file,
"-retries", num_retries, "-retries", num_retries,
"-threads", num_threads,
"-verbosity", verbose "-verbosity", verbose
) )

6
man/zdns_query.Rd

@ -5,7 +5,8 @@
\title{Bulk query using zdns} \title{Bulk query using zdns}
\usage{ \usage{
zdns_query(entities, input_file = NULL, query_type = "A", output_file, 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{ \arguments{
\item{entities}{a character vector of entities to resolve} \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 \item{num_retries}{how many times should \code{zdns} retry query if timeout or
temporary failure? Defaults to \code{3}.} 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 \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 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 path + file will be used to save the JSON error log. If \code{FALSE} no error

Loading…
Cancel
Save