application:networktools

Configure the network tools settings.

warden --task=application:networktools
Option
Value Default Description
--nameservers <string1,string2> The IP addresses to use as name servers. If this is empty the application will default to using the /etc/resolv.conf file.
--nameservers_add <string> Add a single entry to nameservers.
--nameservers_del <string> Remove a single entry from nameservers.
--ns_random <string> Randomize the name servers list each time it is used.
--use_tcp <1|0> Use TCP instead of UDP for DNS queries. UDP is faster, but is limited in size. DNS lookups will automatically use TCP for zone transfers (AFXR) and when a response was truncated.
--strict_query_mode <1|0> If the hostname that was looked up is not actually in the answer section of the response, the DNS lookup will return an empty answer section, instead of an answer section that could contain CNAME records.
--dns_port <digit> 53 The UDP/TCP port to use when making DNS queries.
--timeout <digit> 5 Timeout value to use for socket connections (in seconds).
--cache_type <none|file> none The type of cache to use.
--cache_size <digit> 1048576 The number of bytes the application is allowed to use as a DNS cache (in bytes).
--blacklists <string1,string2> zen.spamhaus.org bl.spamcop.net b.barracudacentral.org bl.score.senderscore.com cidr.bl.mcafee.com dnsbl.forefront.microsoft.com dnsbl.sorbs.net cbl.abuseat.org all.spamrats.com ips.backscatterer.org The dns blacklists to use when performing DNS based blacklist checks.
--blacklists_add <string> Add a single entry to blacklists.
--blacklists_del <string> Remove a single entry from blacklists.
--abuseipdb_api_key <string> The API key required to use the AbuseIPDB.com IP address reputation service.
--abuseipdb_cache <digit> 240 Cache AbuseIPDB lookups for this long (in minutes). This can help lower API usage. Setting this to 0 will disable the cache.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.

Examples

// set nameservers to Google
warden --task=application:networktools --nameservers='8.8.8.8,8.8.4.4'

// reset the nameservers back to its default value
warden --task=application:networktools --default_option=nameservers

// reset all settings to their default values
warden --task=application:networktools --default=yes